From 5f4b5b91d7e262a2ac5c13dc21b0d005e8360046 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Thu, 24 Oct 2019 11:54:11 +0200 Subject: [PATCH] Rustup to rust-lang/rust#65657 --- clippy_lints/src/utils/higher.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clippy_lints/src/utils/higher.rs b/clippy_lints/src/utils/higher.rs index 63e9a27c5..623dc70c1 100644 --- a/clippy_lints/src/utils/higher.rs +++ b/clippy_lints/src/utils/higher.rs @@ -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",