From a3efaf2c05839c8ed3c16578baa8d54672e353e6 Mon Sep 17 00:00:00 2001 From: Adam Israel Date: Wed, 22 Nov 2023 15:21:56 -0600 Subject: [PATCH] chore: Fix clippy warning (#23) --- b2sum/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b2sum/src/main.rs b/b2sum/src/main.rs index 3a56253..684216c 100644 --- a/b2sum/src/main.rs +++ b/b2sum/src/main.rs @@ -259,7 +259,7 @@ fn run(args: &Args) -> Vec { /// Returns a Result so that we can surface file errors like /// file not found or lack of read permissions. fn b2sum_file(filename: String) -> Result { - let file = match File::open(&filename) { + let file = match File::open(filename) { Err(why) => { return Err(why.kind()); }