Skip to content

Commit

Permalink
fixed small typos
Browse files Browse the repository at this point in the history
Signed-off-by: Girish Joshi <[email protected]>
  • Loading branch information
girish946 committed Jun 11, 2024
1 parent 6dd3a42 commit ac8cacf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,15 @@ pub fn flash_xz<F>(
where
F: Fn(f64),
{
let file1 = match NamedTempFile::new() {
let temp_file = match NamedTempFile::new() {
Ok(file) => file,
Err(e) => {
println!("Error creating temp file");
return Err(Box::new(e));
}
};

let file_str = match file1.path().to_str() {
let temp_file_str = match temp_file.path().to_str() {
Some(file_str) => file_str.to_string(),
None => {
println!("Error converting path to string");
Expand All @@ -286,7 +286,7 @@ where
)));
}
};
let temp_file = file_str;
let temp_file = temp_file_str;
println!("temp_file: {:?}", temp_file);
decompress_img(img_path.clone(), temp_file.clone())?;
match flash(
Expand Down

0 comments on commit ac8cacf

Please sign in to comment.