mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
unnecessary_cast
This commit is contained in:
parent
daa20725c5
commit
de6f9561f2
3 changed files with 4 additions and 5 deletions
|
@ -903,7 +903,7 @@ fn emit_def_diagnostic_(
|
|||
}
|
||||
DefDiagnosticKind::InvalidDeriveTarget { ast, id } => {
|
||||
let node = ast.to_node(db.upcast());
|
||||
let derive = node.attrs().nth(*id as usize);
|
||||
let derive = node.attrs().nth(*id);
|
||||
match derive {
|
||||
Some(derive) => {
|
||||
acc.push(
|
||||
|
@ -918,7 +918,7 @@ fn emit_def_diagnostic_(
|
|||
}
|
||||
DefDiagnosticKind::MalformedDerive { ast, id } => {
|
||||
let node = ast.to_node(db.upcast());
|
||||
let derive = node.attrs().nth(*id as usize);
|
||||
let derive = node.attrs().nth(*id);
|
||||
match derive {
|
||||
Some(derive) => {
|
||||
acc.push(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue