Skip to content

Commit

Permalink
Update fs-storage/src/file_storage.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tarek Elsayed <[email protected]>
  • Loading branch information
twitu and tareknaser authored Mar 27, 2024
1 parent bcb3303 commit a7c9180
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs-storage/src/file_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ impl FileStorage {
let version = header[STORAGE_VERSION_PREFIX.len()..]
.parse::<i32>()
.map_err(|_err| {
<&str as Into<ArklibError>>::into(
"Unable to parse storage version",
ArklibError::Storage(
self.label.clone(),
"Failed to parse storage version".to_owned(),
)
})?;

Expand Down

0 comments on commit a7c9180

Please sign in to comment.