Skip to content

Commit f97a159

Browse files
committed
Rust: clippy fixes
1 parent 88e5ce3 commit f97a159

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rust/extractor/src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ fn extract(
2020
archiver: &Archiver,
2121
traps: &trap::TrapFileProvider,
2222
file: &std::path::Path,
23-
) -> () {
24-
archiver.archive(&file);
23+
) {
24+
archiver.archive(file);
2525

2626
let (ast, input, parse_errors, file_id, semi) = rust_analyzer.parse(file);
2727
let line_index = LineIndex::new(input.as_ref());
2828
let display_path = file.to_string_lossy();
29-
let mut trap = traps.create("source", &file);
30-
let label = trap.emit_file(&file);
29+
let mut trap = traps.create("source", file);
30+
let label = trap.emit_file(file);
3131
let mut translator = translate::Translator::new(
3232
trap,
3333
display_path.as_ref(),
@@ -74,7 +74,7 @@ fn main() -> anyhow::Result<()> {
7474
.inputs
7575
.iter()
7676
.map(|file| {
77-
let file = std::path::absolute(&file).unwrap_or(file.to_path_buf());
77+
let file = std::path::absolute(file).unwrap_or(file.to_path_buf());
7878
std::fs::canonicalize(&file).unwrap_or(file)
7979
})
8080
.collect();

0 commit comments

Comments
 (0)