We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unused_mut
1 parent c8d1ae2 commit 5211f0fCopy full SHA for 5211f0f
rust/kernel/chrdev.rs
@@ -160,7 +160,7 @@ impl<const N: usize> Registration<{ N }> {
160
});
161
}
162
163
- let mut inner = this.inner.as_mut().unwrap();
+ let inner = this.inner.as_mut().unwrap();
164
if inner.used == N {
165
return Err(EINVAL);
166
rust/kernel/fs.rs
@@ -428,7 +428,7 @@ impl Registration {
428
429
430
431
- let mut fs = this.fs.get_mut();
+ let fs = this.fs.get_mut();
432
fs.owner = module.0;
433
fs.name = T::NAME.as_char_ptr();
434
fs.fs_flags = T::FLAGS;
0 commit comments