just works

This commit is contained in:
nora 2022-12-17 22:55:59 +01:00
parent dcd163aeda
commit 436546eaf5
7 changed files with 23 additions and 14 deletions

View file

@ -144,7 +144,6 @@ impl Processor for DeleteUnusedFunctions {
#[derive(Debug)]
struct Unused {
name: String,
line: usize,
column: Range<usize>,
}
@ -184,7 +183,6 @@ impl FindUnusedFunction {
return None;
}
let name = diag.message.split("`").nth(1)?.to_owned();
let span = &diag.spans[0];
assert_eq!(
@ -197,7 +195,6 @@ impl FindUnusedFunction {
}
Some(Unused {
name,
line: span.line_start,
column: (span.column_start - 1)..(span.column_end - 1),
})