Skip to content

Commit b967f17

Browse files
committed
Auto merge of rust-lang#12493 - bjorn3:fix_warnings, r=lnicola
Fix a couple of weak warnings found by rust-analyzer itself
2 parents a64c120 + c81608c commit b967f17

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

crates/ide-assists/src/handlers/inline_type_alias.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@ use hir::{HasSource, PathResolution};
77
use itertools::Itertools;
88
use std::collections::HashMap;
99
use syntax::{
10-
ast::{
11-
self,
12-
make::{self},
13-
HasGenericParams, HasName,
14-
},
15-
ted::{self},
16-
AstNode, NodeOrToken, SyntaxNode,
10+
ast::{self, make, HasGenericParams, HasName},
11+
ted, AstNode, NodeOrToken, SyntaxNode,
1712
};
1813

1914
use crate::{

crates/rust-analyzer/tests/slow-tests/support.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ fn find_mismatch<'a>(expected: &'a Value, actual: &'a Value) -> Option<(&'a Valu
360360
let l = sorted_values(l);
361361
let r = sorted_values(r);
362362

363-
l.into_iter().zip(r).filter_map(|(l, r)| find_mismatch(l, r)).next()
363+
l.into_iter().zip(r).find_map(|(l, r)| find_mismatch(l, r))
364364
}
365365
(Value::Null, Value::Null) => None,
366366
// magic string literal "{...}" acts as wildcard for any sub-JSON

0 commit comments

Comments
 (0)