mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
refactor: get(0) -> first()
This commit is contained in:
parent
a0be4b189c
commit
96ed889cdf
@ -179,7 +179,7 @@ fn find_from_definition(
|
|||||||
// FIXME: This condition does not work for complicated cases such as
|
// FIXME: This condition does not work for complicated cases such as
|
||||||
// receiver_type: Vec<i64>
|
// receiver_type: Vec<i64>
|
||||||
// arg.ty(): T: IntoIterator<Item = i64>
|
// arg.ty(): T: IntoIterator<Item = i64>
|
||||||
args.get(0).is_some_and(|arg| receiver_type.could_coerce_to(db, arg.ty()))
|
args.first().is_some_and(|arg| receiver_type.could_coerce_to(db, arg.ty()))
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
let def = Definition::from(target_method);
|
let def = Definition::from(target_method);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user