Skip to content

Commit ebd6be5

Browse files
committed
fixed clippy warning
1 parent c45136f commit ebd6be5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

platform/src/syscalls.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,13 @@ pub trait Syscalls: RawSyscalls + Sized {
5959

6060
/// Shares a read-write buffer with the kernel.
6161
fn allow_rw_buffer<
62-
'share,
6362
CONFIG: allow_rw::Config,
6463
const DRIVER_NUM: u32,
6564
const BUFFER_NUM: u32,
6665
const BUFFER_SIZE: usize,
6766
>(
6867
allow_rw_buffer: core::pin::Pin<
69-
&'share mut allow_rw::AllowRwBuffer<Self, DRIVER_NUM, BUFFER_NUM, BUFFER_SIZE>,
68+
&mut allow_rw::AllowRwBuffer<Self, DRIVER_NUM, BUFFER_NUM, BUFFER_SIZE>,
7069
>,
7170
) -> Result<(), ErrorCode>;
7271

platform/src/syscalls_impl.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,13 @@ impl<S: RawSyscalls> Syscalls for S {
252252
}
253253

254254
fn allow_rw_buffer<
255-
'share,
256255
CONFIG: allow_rw::Config,
257256
const DRIVER_NUM: u32,
258257
const BUFFER_NUM: u32,
259258
const BUFFER_SIZE: usize,
260259
>(
261260
mut allow_rw_buffer: core::pin::Pin<
262-
&'share mut allow_rw::AllowRwBuffer<Self, DRIVER_NUM, BUFFER_NUM, BUFFER_SIZE>,
261+
&mut allow_rw::AllowRwBuffer<Self, DRIVER_NUM, BUFFER_NUM, BUFFER_SIZE>,
263262
>,
264263
) -> Result<(), ErrorCode> {
265264
// Inner function that does the majority of the work. This is not

0 commit comments

Comments
 (0)