Skip to content

Commit 96d9fd8

Browse files
committed
Silence new clippy lint occurrence
1 parent 8dec390 commit 96d9fd8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/matrix-sdk-crypto/src/verification/event_enums.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ pub enum RequestContent<'a> {
272272
}
273273

274274
impl RequestContent<'_> {
275+
#[allow(clippy::wrong_self_convention)]
275276
pub fn from_device(&self) -> &DeviceId {
276277
match self {
277278
Self::ToDevice(t) => &t.from_device,
@@ -294,6 +295,7 @@ pub enum ReadyContent<'a> {
294295
}
295296

296297
impl ReadyContent<'_> {
298+
#[allow(clippy::wrong_self_convention)]
297299
pub fn from_device(&self) -> &DeviceId {
298300
match self {
299301
Self::ToDevice(t) => &t.from_device,
@@ -422,6 +424,7 @@ pub enum StartContent<'a> {
422424
}
423425

424426
impl<'a> StartContent<'a> {
427+
#[allow(clippy::wrong_self_convention)]
425428
pub fn from_device(&self) -> &DeviceId {
426429
match self {
427430
Self::ToDevice(c) => &c.from_device,

0 commit comments

Comments
 (0)