mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 07:11:36 +02:00
Clippy easy wins 1 (#596)
This commit is contained in:
@@ -63,10 +63,8 @@ impl SlateGetter for PathToSlate {
|
||||
let bin_res = byte_ser::from_bytes::<VersionedBinSlate>(&data);
|
||||
if let Err(e) = bin_res {
|
||||
debug!("Not a valid binary slate: {} - Will try JSON", e);
|
||||
} else {
|
||||
if let Ok(s) = bin_res {
|
||||
return Ok((Slate::upgrade(s.into())?, true));
|
||||
}
|
||||
} else if let Ok(s) = bin_res {
|
||||
return Ok((Slate::upgrade(s.into())?, true));
|
||||
}
|
||||
|
||||
// Otherwise try json
|
||||
|
||||
Reference in New Issue
Block a user