diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2023-01-08 21:30:53 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:33:29 +0100 |
| commit | c40c89bb4edc22c4a60d8677c660a9ab7eb47e92 (patch) | |
| tree | 3ba72592f324dd7bef32773211b093e4949d6ff0 /src/export.rs | |
| parent | 6d252785e83218eeb5d080836281c90b86ca0e03 (diff) | |
Clippy fixes
Diffstat (limited to 'src/export.rs')
| -rw-r--r-- | src/export.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/export.rs b/src/export.rs index bfd0f6d..091cfb8 100644 --- a/src/export.rs +++ b/src/export.rs @@ -298,9 +298,9 @@ pub unsafe fn lock<T, R, const M: usize>( if ceiling >= 4 { // safe to manipulate outside critical section // execute closure under protection of raised system ceiling - let r = interrupt::free(|_| f(&mut *ptr)); + // safe to manipulate outside critical section - r + interrupt::free(|_| f(&mut *ptr)) } else { // safe to manipulate outside critical section let mask = compute_mask(0, ceiling, masks); |
