fix locking patterns, add simple test

This commit is contained in:
keorn
2016-08-22 17:33:04 +02:00
parent 2f5aeda44f
commit 89011dcc34
2 changed files with 59 additions and 28 deletions

View File

@@ -261,7 +261,8 @@ impl fmt::Display for Error {
Error::StdIo(ref err) => err.fmt(f),
Error::Snappy(ref err) => err.fmt(f),
Error::Snapshot(ref err) => err.fmt(f),
Error::Vote(ref err) => f.write_str("Bad vote."),
Error::Vote(ref err) =>
f.write_fmt(format_args!("Bad vote: {:?}", err)),
}
}
}