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:
parent
1debbf25a4
commit
e484d69006
@ -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!(
|
||||||
"{} {}",
|
"{} {}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user