Skip to content

Commit 5520d88

Browse files
committed
Silence explicit_deref_methods at calling location
1 parent 0c5e028 commit 5520d88

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ missing_errors_doc = "allow"
9999
must_use_candidate = "allow"
100100
return_self_not_must_use = "allow"
101101
missing_panics_doc = "allow"
102-
explicit_deref_methods = "allow"
103102
cast_possible_truncation = "allow"
104103
float_cmp = "allow"
105104
cast_sign_loss = "allow"

crates/stackable-operator/src/kvp/key.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ impl<T> PartialEq<T> for KeyPrefix
248248
where
249249
T: AsRef<str>,
250250
{
251+
// Not sure how to write that differently without getting a warning about recursion
252+
#[expect(clippy::explicit_deref_methods)]
251253
fn eq(&self, other: &T) -> bool {
252254
self.deref() == other.as_ref()
253255
}
@@ -332,6 +334,8 @@ impl<T> PartialEq<T> for KeyName
332334
where
333335
T: AsRef<str>,
334336
{
337+
// Not sure how to write that differently without getting a warning about recursion
338+
#[expect(clippy::explicit_deref_methods)]
335339
fn eq(&self, other: &T) -> bool {
336340
self.deref() == other.as_ref()
337341
}

0 commit comments

Comments
 (0)