Removing an unwrap during file moves
Dependencies
- [2]
ZDK3GNDBTag transactions (including a massive refactoring of errors) - [3]
2RXOCWUWMaking libpijul deterministic (and getting rid of `rand`) - [4]
YN63NUZOSanakirja 1.0 - [5]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [6]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- edit in libpijul/src/fs.rs at line 25
#[error("Inode not found")]InodeNotFound(Inode), - edit in libpijul/src/fs.rs at line 40
FsError::InodeNotFound(inode) => write!(fmt, "Inode not found: {}", inode.to_base32()), - replacement in libpijul/src/fs.rs at line 297
let fileref = txn.get_revtree(&inode, None)?.unwrap().to_owned();debug!("inode = {:?}", inode);let fileref = if let Some(inode) = txn.get_revtree(&inode, None)? {inode.to_owned()} else {return Err(FsError::InodeNotFound(inode));};