Cleanup error type mapping in serde_snapshot (#10580)

* Cleanup error type mapping in serde_snapshot

* Fail when account storage entry files cannot be moved from snapshot
This commit is contained in:
Kristofer Peterson
2020-06-17 09:56:29 +01:00
committed by GitHub
parent 540ac9eb6b
commit 50c93d4441
5 changed files with 35 additions and 70 deletions

View File

@ -88,7 +88,7 @@ pub enum SnapshotError {
IO(#[from] std::io::Error),
#[error("serialization error")]
Serialize(#[from] Box<bincode::ErrorKind>),
Serialize(#[from] bincode::Error),
#[error("file system error")]
FsExtra(#[from] fs_extra::error::Error),