about summary refs log tree commit diff
path: root/clippy_lints/src/methods/chars_cmp.rs
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2021-04-02 17:35:32 -0400
committerJason Newcomb <jsnewcomb@pm.me>2021-04-06 10:43:47 -0400
commit12fce557669a0de230399cf8e6eee4f5307bf87b (patch)
tree6757cf92609e12c46ee23897093c46a7970c0a05 /clippy_lints/src/methods/chars_cmp.rs
parentd2ba77715967fe1658a2f721757a37901992ac3f (diff)
downloadrust-12fce557669a0de230399cf8e6eee4f5307bf87b.tar.gz
rust-12fce557669a0de230399cf8e6eee4f5307bf87b.zip
Fix all occurences of `needless_borrow` internally
Diffstat (limited to 'clippy_lints/src/methods/chars_cmp.rs')
-rw-r--r--clippy_lints/src/methods/chars_cmp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/chars_cmp.rs b/clippy_lints/src/methods/chars_cmp.rs
index c668fe52781..514c4118765 100644
--- a/clippy_lints/src/methods/chars_cmp.rs
+++ b/clippy_lints/src/methods/chars_cmp.rs
@@ -19,7 +19,7 @@ pub(super) fn check(
 ) -> bool {
     if_chain! {
         if let Some(args) = method_chain_args(info.chain, chain_methods);
-        if let hir::ExprKind::Call(ref fun, ref arg_char) = info.other.kind;
+        if let hir::ExprKind::Call(fun, arg_char) = info.other.kind;
         if arg_char.len() == 1;
         if let hir::ExprKind::Path(ref qpath) = fun.kind;
         if let Some(segment) = single_segment_path(qpath);