Skip to content

Commit e6f5feb

Browse files
committed
Fix lints with rust-1.87-nightly
1 parent b1f9de6 commit e6f5feb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/actions/storage_add.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,9 @@ impl Execute for AddToStorageAction {
4444
}
4545
AutoVersionExtractFromRule::PlainFile { path } => {
4646
let mut file = std::fs::File::open(path)?;
47-
let version = {
48-
let mut ver = String::new();
49-
file.read_to_string(&mut ver)?;
50-
ver.trim().to_string()
51-
};
52-
version
47+
let mut ver = String::new();
48+
file.read_to_string(&mut ver)?;
49+
ver.trim().to_string()
5350
}
5451
};
5552

0 commit comments

Comments
 (0)