Fix 658 and compiler complaints (#661)

* Tried but failed to fix `cargo build` complaint about unused #[macro use]. See also 7a803a8dc1
* Compiler complaints be-gone
* Give sumtree tests method-tagged folder names so they don't overwrite each others' files
Fixes #658
This commit is contained in:
Simon B
2018-01-28 07:12:33 +01:00
committed by Ignotus Peverell
parent 783e4c250d
commit 86ff4e5bd0
6 changed files with 40 additions and 30 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ pub fn write_msg<T>(
where
T: Writeable + 'static,
{
let write_msg = ok((conn)).and_then(move |conn| {
let write_msg = ok(conn).and_then(move |conn| {
// prepare the body first so we know its serialized length
let mut body_buf = vec![];
ser::serialize(&mut body_buf, &msg).unwrap();