mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
Auto merge of #12493 - bjorn3:fix_warnings, r=lnicola
Fix a couple of weak warnings found by rust-analyzer itself
This commit is contained in:
@@ -7,13 +7,8 @@
|
||||
use itertools::Itertools;
|
||||
use std::collections::HashMap;
|
||||
use syntax::{
|
||||
ast::{
|
||||
self,
|
||||
make::{self},
|
||||
HasGenericParams, HasName,
|
||||
},
|
||||
ted::{self},
|
||||
AstNode, NodeOrToken, SyntaxNode,
|
||||
ast::{self, make, HasGenericParams, HasName},
|
||||
ted, AstNode, NodeOrToken, SyntaxNode,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
|
||||
@@ -360,7 +360,7 @@ fn sorted_values(obj: &serde_json::Map<String, Value>) -> Vec<&Value> {
|
||||
let l = sorted_values(l);
|
||||
let r = sorted_values(r);
|
||||
|
||||
l.into_iter().zip(r).filter_map(|(l, r)| find_mismatch(l, r)).next()
|
||||
l.into_iter().zip(r).find_map(|(l, r)| find_mismatch(l, r))
|
||||
}
|
||||
(Value::Null, Value::Null) => None,
|
||||
// magic string literal "{...}" acts as wildcard for any sub-JSON
|
||||
|
||||
Reference in New Issue
Block a user