diff --git a/src/commands.rs b/src/commands.rs index df5f302..f2403cb 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -253,7 +253,7 @@ pub fn handle(command: SubCommand) -> Result<(), Box> { data_a.print_diff(data_b, strict); } - SubCommand::Sha256Sum { inputfile } => match fs::read_to_string(inputfile.clone()) { + SubCommand::Sha256Sum { inputfile } => match fs::read(inputfile.clone()) { Ok(content) => { println!( "{} {}",