ksud: Fix compiler error
This commit is contained in:
@@ -436,9 +436,11 @@ fn do_patch(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
fn calculate_sha1(file_path: impl AsRef<Path>) -> io::Result<String> {
|
fn calculate_sha1(file_path: impl AsRef<Path>) -> Result<String> {
|
||||||
let mut file = File::open(file_path.as_ref())?;
|
use sha1::Digest;
|
||||||
let mut hasher = Sha1::new();
|
use std::io::Read;
|
||||||
|
let mut file = std::fs::File::open(file_path.as_ref())?;
|
||||||
|
let mut hasher = sha1::Sha1::new();
|
||||||
let mut buffer = [0; 1024];
|
let mut buffer = [0; 1024];
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
|||||||
Reference in New Issue
Block a user