diff --git a/kernel-rs/src/bio.rs b/kernel-rs/src/bio.rs index cc0c52ed..cab90904 100644 --- a/kernel-rs/src/bio.rs +++ b/kernel-rs/src/bio.rs @@ -42,7 +42,6 @@ impl BufEntry { } } -#[rustfmt::skip] // Need this if lower than rustfmt 1.4.34 impl const Default for BufEntry { fn default() -> Self { Self::zero() diff --git a/kernel-rs/src/file.rs b/kernel-rs/src/file.rs index 050d1686..bd59c007 100644 --- a/kernel-rs/src/file.rs +++ b/kernel-rs/src/file.rs @@ -198,7 +198,6 @@ impl File { } } -#[rustfmt::skip] // Need this if lower than rustfmt 1.4.34 impl const Default for File { fn default() -> Self { Self::zero() diff --git a/kernel-rs/src/fs/inode.rs b/kernel-rs/src/fs/inode.rs index 85a73655..9f6802a8 100644 --- a/kernel-rs/src/fs/inode.rs +++ b/kernel-rs/src/fs/inode.rs @@ -672,7 +672,6 @@ impl InodeGuard<'_> { } } -#[rustfmt::skip] // Need this if lower than rustfmt 1.4.34 impl const Default for Inode { fn default() -> Self { Self::zero() diff --git a/kernel-rs/src/lock/remotelock.rs b/kernel-rs/src/lock/remotelock.rs index 2754f8f4..8ca766e3 100644 --- a/kernel-rs/src/lock/remotelock.rs +++ b/kernel-rs/src/lock/remotelock.rs @@ -26,7 +26,7 @@ impl<'s, R: RawLock, U, T> RemoteLock<'s, R, U, T> { /// /// ```rust,no_run /// let spinlock: Spinlock = Spinlock::new("spinlock", 10); - /// let spinlock_remote: RemoteSpinlock<'_, usize, isize> = RemoteLock::new(&spinlock, -20); + /// let spinlock_remote: RemoteLock<'_, RawSpinlock, usize, isize> = RemoteLock::new(&spinlock, -20); /// ``` pub const fn new(lock: &'s Lock, data: T) -> Self { Self {