diff --git a/src/config.rs b/src/config.rs index c3e8d83..7eeca03 100644 --- a/src/config.rs +++ b/src/config.rs @@ -137,7 +137,7 @@ impl Config { #[cfg(target_os = "linux")] fn checksum(path: &str) -> Result { - let mut crc = checksum::crc::Crc::new(path.context("unable to read path")?); + let mut crc = checksum::crc::Crc::new(path); match crc.checksum() { Ok(checksum) => Ok(checksum.crc32), Err(e) => Err(anyhow!("Checksum error {:?}", e).into()),