mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
don't need the as_ref()
This commit is contained in:
parent
c52605024c
commit
5dfc8da77e
1 changed files with 2 additions and 2 deletions
|
@ -101,8 +101,8 @@ fn are_same_types(
|
||||||
) -> bool {
|
) -> bool {
|
||||||
let arm_types = get_arm_types(&ctx, &arm);
|
let arm_types = get_arm_types(&ctx, &arm);
|
||||||
for i in 0..arm_types.len() {
|
for i in 0..arm_types.len() {
|
||||||
let other_arm_type = &arm_types[i].as_ref();
|
let other_arm_type = &arm_types[i];
|
||||||
let current_arm_type = current_arm_types[i].as_ref();
|
let current_arm_type = ¤t_arm_types[i];
|
||||||
if let (Some(other_arm_type), Some(current_arm_type)) = (other_arm_type, current_arm_type) {
|
if let (Some(other_arm_type), Some(current_arm_type)) = (other_arm_type, current_arm_type) {
|
||||||
return &other_arm_type.original == ¤t_arm_type.original;
|
return &other_arm_type.original == ¤t_arm_type.original;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue