1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-07-01 08:32:53 +00:00

fix: use binary file read (#34)

This commit is contained in:
2024-11-06 19:15:42 +01:00
committed by GitHub
parent 1debbf25a4
commit e484d69006

View File

@ -253,7 +253,7 @@ pub fn handle(command: SubCommand) -> Result<(), Box<dyn Error>> {
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!(
"{} {}",