Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix #484

Merged
merged 1 commit into from
Apr 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion kernel-rs/src/bio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 0 additions & 1 deletion kernel-rs/src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 0 additions & 1 deletion kernel-rs/src/fs/inode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion kernel-rs/src/lock/remotelock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl<'s, R: RawLock, U, T> RemoteLock<'s, R, U, T> {
///
/// ```rust,no_run
/// let spinlock: Spinlock<usize> = 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<R, U>, data: T) -> Self {
Self {
Expand Down