Skip to content

Commit

Permalink
chore: Fix clippy warning (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamIsrael authored Nov 22, 2023
1 parent 61a43d4 commit a3efaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion b2sum/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ fn run(args: &Args) -> Vec<B2Hash> {
/// Returns a Result<String, ErrorKind> so that we can surface file errors like
/// file not found or lack of read permissions.
fn b2sum_file(filename: String) -> Result<String, ErrorKind> {
let file = match File::open(&filename) {
let file = match File::open(filename) {
Err(why) => {
return Err(why.kind());
}
Expand Down

0 comments on commit a3efaf2

Please sign in to comment.