File tree Expand file tree Collapse file tree 4 files changed +1
-13
lines changed Expand file tree Collapse file tree 4 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,6 @@ mod async_imports {
55
55
#[ cfg( feature="async" ) ]
56
56
use self :: async_imports:: * ;
57
57
58
- // TODO: add extra funcs for future stuff, like auto ping and auto close
59
-
60
-
61
58
/// Build clients with a builder-style API
62
59
/// This makes it easy to create and configure a websocket
63
60
/// connection:
@@ -662,7 +659,6 @@ impl<'u> ClientBuilder<'u> {
662
659
Box :: new ( future)
663
660
}
664
661
665
- // TODO: add timeout option for connecting
666
662
// TODO: add conveniences like .response_to_pings, .send_close, etc.
667
663
/// Asynchronously create an insecure (plain TCP) connection to the client.
668
664
///
@@ -974,6 +970,4 @@ mod tests {
974
970
assert ! ( protos. contains( & "electric" . to_string( ) ) ) ;
975
971
assert ! ( !protos. contains( & "rust-websocket" . to_string( ) ) ) ;
976
972
}
977
-
978
- // TODO: a few more
979
973
}
Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ use ws::message::Message as MessageTrait;
24
24
use ws:: util:: header:: read_header;
25
25
use result:: WebSocketError ;
26
26
27
- // TODO: IMPORTANT: check if frame_size is correct,
28
- // do not call .reserve with the entire size
29
-
30
27
/// Even though a websocket connection may look perfectly symmetrical
31
28
/// in reality there are small differences between clients and servers.
32
29
/// This type is passed to the codecs to inform them of what role they are in
@@ -290,8 +287,6 @@ impl<M> Encoder for MessageCodec<M>
290
287
}
291
288
}
292
289
293
- // TODO: add tests to check boundary cases for reading dataframes
294
-
295
290
#[ cfg( test) ]
296
291
mod tests {
297
292
use super :: * ;
Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ impl DataFrame {
61
61
if !should_be_masked {
62
62
return Err ( WebSocketError :: DataFrameError ( "Expected unmasked data frame" ) ) ;
63
63
}
64
- // TODO: move data to avoid copy?
65
64
mask:: mask_data ( mask, & body)
66
65
}
67
66
None => {
Original file line number Diff line number Diff line change @@ -132,6 +132,6 @@ impl ws::Receiver for Receiver {
132
132
}
133
133
}
134
134
135
- Ok ( :: std:: mem:: replace ( & mut self . buffer , Vec :: new ( ) ) )
135
+ Ok ( :: std:: mem:: replace ( & mut self . buffer , Vec :: new ( ) ) )
136
136
}
137
137
}
You can’t perform that action at this time.
0 commit comments