Removing trailing whitespace

This commit is contained in:
Paul Faria 2015-05-18 17:28:16 -04:00
parent 31b709a7c2
commit 0362d254b8

View file

@ -133,7 +133,7 @@ fn parse_web_socket_url(url_str: &str) -> Fallible<(Url, String, u16, String, bo
} }
let mut resource = resource.to_owned(); let mut resource = resource.to_owned();
// 11. If the resulting parsed URL has a non-null query component, then // 11. If the resulting parsed URL has a non-null query component, then
// append a single U+003F QUESTION MARK character (?) to resource name, // append a single U+003F QUESTION MARK character (?) to resource name,
// followed by the value of the query component. // followed by the value of the query component.
@ -150,7 +150,7 @@ fn parse_web_socket_url(url_str: &str) -> Fallible<(Url, String, u16, String, bo
let mut base_pair = String::new(); let mut base_pair = String::new();
base_pair.push_str(joined_pairs.next().unwrap().as_ref()); base_pair.push_str(joined_pairs.next().unwrap().as_ref());
resource.push('?'); resource.push('?');
let query_string = joined_pairs.fold(base_pair, |mut current, next| { let query_string = joined_pairs.fold(base_pair, |mut current, next| {
@ -158,7 +158,7 @@ fn parse_web_socket_url(url_str: &str) -> Fallible<(Url, String, u16, String, bo
current.push_str(next.as_ref()); current.push_str(next.as_ref());
current current
}); });
resource.push_str(query_string.as_ref()); resource.push_str(query_string.as_ref());
}, },
None => (), None => (),
@ -226,7 +226,7 @@ impl WebSocket {
//Do nothing else. Let the close finish. //Do nothing else. Let the close finish.
return Ok(Temporary::from_rooted(ws_root)); return Ok(Temporary::from_rooted(ws_root));
} }
let (temp_sender, temp_receiver) = response.begin().split(); let (temp_sender, temp_receiver) = response.begin().split();
let mut other_sender = ws_root.sender.borrow_mut(); let mut other_sender = ws_root.sender.borrow_mut();
let mut other_receiver = ws_root.receiver.borrow_mut(); let mut other_receiver = ws_root.receiver.borrow_mut();