Skip to content

Commit 5050743

Browse files
committed
refactor(core): ignore the should_implement_trait lint for Hunk::as_ref
1 parent 71acbe3 commit 5050743

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/r3_core/src/hunk.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ impl<System: raw::KernelBase + cfg::KernelStatic, T: ?Sized> Hunk<System, T> {
299299

300300
/// Get a reference to the hunk's contents.
301301
#[inline]
302+
#[allow(clippy::should_implement_trait)]
302303
pub fn as_ref<'a>(this: Self) -> &'a T
303304
where
304305
T: 'a,

0 commit comments

Comments
 (0)