1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 11:46:50 +00:00

fix: use binary file read (#34)

This commit is contained in:
Paul-Christian Volkmer 2024-11-06 19:15:42 +01:00 committed by GitHub
parent 1debbf25a4
commit e484d69006
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -253,7 +253,7 @@ pub fn handle(command: SubCommand) -> Result<(), Box<dyn Error>> {
data_a.print_diff(data_b, strict); 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) => { Ok(content) => {
println!( println!(
"{} {}", "{} {}",