From e484d690069bee35d0035933df068b510abaeb41 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Wed, 6 Nov 2024 19:15:42 +0100 Subject: [PATCH] fix: use binary file read (#34) --- src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!( "{} {}",