Skip to content

Commit b51db78

Browse files
committed
fixup
1 parent 2307070 commit b51db78

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/codec/http.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ mod tests {
299299
GET / HTTP/1.0\r\n\
300300
Host: www.rust-lang.org\r\n\
301301
\r\n\
302-
".as_bytes();
302+
"
303+
.as_bytes();
303304
let input = Cursor::new(request);
304305
let output = Cursor::new(Vec::new());
305306

src/codec/ws.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ mod tests {
377377
.and_then(|s| s.send(Message::text("ethan bradberry")))
378378
.and_then(|s| {
379379
let mut stream = s.into_parts().inner;
380-
stream.1.set_position(0);
381-
println!("buffer: {:?}", stream.1);
380+
stream.1.set_position(0);
381+
println!("buffer: {:?}", stream.1);
382382
ReadWritePair(stream.1, stream.0)
383383
.framed(MessageCodec::default(Context::Server))
384384
.into_future()

src/server/upgrade/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl<S, B> WsUpgrade<S, B>
124124
self.request.headers.get::<Origin>().map(|o| &o.0 as &str)
125125
}
126126

127-
#[cfg(feature="sync")]
127+
#[cfg(feature="sync")]
128128
fn send(&mut self, status: StatusCode) -> io::Result<()> {
129129
try!(write!(&mut self.stream, "{} {}\r\n", self.request.version, status));
130130
try!(write!(&mut self.stream, "{}\r\n", self.headers));

0 commit comments

Comments
 (0)