style(rustfmt): run rustfmt on hyper correct overlong lines
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
//! use std::sync::Arc;
|
||||
//! use std::thread;
|
||||
//!
|
||||
//! // Note: an Arc is used here because `thread::spawn` creates threads that
|
||||
//! // Note: an Arc is used here because `thread::spawn` creates threads that
|
||||
//! // can outlive the main thread, so we must use reference counting to keep
|
||||
//! // the Client alive long enough. Scoped threads could skip the Arc.
|
||||
//! let client = Arc::new(Client::new());
|
||||
|
||||
@@ -108,7 +108,8 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_into_inner() {
|
||||
let message: Box<HttpMessage> = Box::new(Http11Message::with_stream(Box::new(MockStream::new())));
|
||||
let message: Box<HttpMessage> = Box::new(
|
||||
Http11Message::with_stream(Box::new(MockStream::new())));
|
||||
let message = message.downcast::<Http11Message>().ok().unwrap();
|
||||
let b = message.into_inner().downcast::<MockStream>().ok().unwrap();
|
||||
assert_eq!(b, Box::new(MockStream::new()));
|
||||
|
||||
Reference in New Issue
Block a user