File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ impl<const N: usize> Registration<{ N }> {
169
169
// SAFETY: The adapter doesn't retrieve any state yet, so it's compatible with any
170
170
// registration.
171
171
let fops = unsafe { file_operations:: FileOperationsVtable :: < Self , T > :: build ( ) } ;
172
- let mut cdev = Cdev :: alloc ( fops, & this. this_module ) ?;
172
+ let mut cdev = Cdev :: alloc ( fops, this. this_module ) ?;
173
173
cdev. add ( inner. dev + inner. used as bindings:: dev_t , 1 ) ?;
174
174
inner. cdevs [ inner. used ] . replace ( cdev) ;
175
175
inner. used += 1 ;
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ impl fmt::Debug for Error {
112
112
// SAFETY: `'static` string from C, and is not NULL.
113
113
let cstr = unsafe { CStr :: from_char_ptr ( name) } ;
114
114
// SAFETY: These strings are ASCII-only.
115
- let str = unsafe { str:: from_utf8_unchecked ( & cstr) } ;
115
+ let str = unsafe { str:: from_utf8_unchecked ( cstr) } ;
116
116
f. debug_tuple ( str) . finish ( )
117
117
}
118
118
}
You can’t perform that action at this time.
0 commit comments