Skip to content

Commit cd35b9e

Browse files
committed
Fix wrong reported lint for EXPL_IMPL_CLONE_ON_COPY
1 parent 2a0a35c commit cd35b9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/derive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use utils::{match_path, span_lint_and_then};
1616
/// an explicitely defined `PartialEq`. In particular, the following must hold for any type:
1717
///
1818
/// ```rust
19-
/// k1 == k2 -> hash(k1) == hash(k2)
19+
/// k1 == k2 hash(k1) == hash(k2)
2020
/// ```
2121
///
2222
/// **Known problems:** None.
@@ -161,7 +161,7 @@ fn check_copy_clone<'a, 'tcx>(cx: &LateContext<'a, 'tcx>,
161161
}
162162

163163
span_lint_and_then(cx,
164-
DERIVE_HASH_NOT_EQ,
164+
EXPL_IMPL_CLONE_ON_COPY,
165165
item.span,
166166
"you are implementing `Clone` explicitly on a `Copy` type",
167167
|db| {

0 commit comments

Comments
 (0)