Use correct path in comment
Co-Authored-By: Philipp Krones <hello@philkrones.com>
This commit is contained in:
parent
9a0b598b73
commit
6d425a60a7
@ -31,7 +31,7 @@ struct Foo;
|
||||
impl PartialEq for Foo {
|
||||
// Allow this here, because it emits the lint
|
||||
// without a suggestion. This is tested in
|
||||
// `tests/ui/cmp_owned_without_suggestion.rs`
|
||||
// `tests/ui/cmp_owned/without_suggestion.rs`
|
||||
#[allow(clippy::cmp_owned)]
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.to_owned() == *other
|
||||
|
@ -31,7 +31,7 @@ struct Foo;
|
||||
impl PartialEq for Foo {
|
||||
// Allow this here, because it emits the lint
|
||||
// without a suggestion. This is tested in
|
||||
// `tests/ui/cmp_owned_without_suggestion.rs`
|
||||
// `tests/ui/cmp_owned/without_suggestion.rs`
|
||||
#[allow(clippy::cmp_owned)]
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.to_owned() == *other
|
||||
|
Loading…
Reference in New Issue
Block a user