It's Clippy time (#3806)

Fix some Clippy issues
This commit is contained in:
Caio
2019-10-19 08:01:51 -03:00
committed by Bastian Köcher
parent 470b62366f
commit f5162edc83
13 changed files with 18 additions and 31 deletions
@@ -38,7 +38,7 @@ fn load_decode<B, T>(backend: &B, key: &[u8]) -> ClientResult<Option<T>>
T: Decode,
{
let corrupt = |e: codec::Error| {
ClientError::Backend(format!("BABE DB is corrupted. Decode error: {}", e.what())).into()
ClientError::Backend(format!("BABE DB is corrupted. Decode error: {}", e.what()))
};
match backend.get_aux(key)? {
None => Ok(None),