Skip to content

Commit

Permalink
fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
shevernitskiy committed Nov 11, 2023
1 parent 242d1f8 commit a89995e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl Config {

#[cfg(target_os = "linux")]
fn checksum(path: &str) -> Result<u32> {
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()),
Expand Down

0 comments on commit a89995e

Please sign in to comment.