mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Rustup to rust-lang/rust#65657
This commit is contained in:
parent
8c205018d2
commit
5f4b5b91d7
1 changed files with 3 additions and 3 deletions
|
@ -64,13 +64,13 @@ pub fn range<'a, 'b, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'b hir::Expr) -> O
|
|||
if def_path.data.len() != 3 {
|
||||
return None;
|
||||
}
|
||||
if def_path.data.get(0)?.data.as_interned_str().as_symbol() != sym!(ops) {
|
||||
if def_path.data.get(0)?.data.as_symbol() != sym!(ops) {
|
||||
return None;
|
||||
}
|
||||
if def_path.data.get(1)?.data.as_interned_str().as_symbol() != sym!(range) {
|
||||
if def_path.data.get(1)?.data.as_symbol() != sym!(range) {
|
||||
return None;
|
||||
}
|
||||
let type_name = def_path.data.get(2)?.data.as_interned_str();
|
||||
let type_name = def_path.data.get(2)?.data.as_symbol();
|
||||
let range_types = [
|
||||
"RangeFrom",
|
||||
"RangeFull",
|
||||
|
|
Loading…
Reference in a new issue