diff options
author | 2023-01-08 21:30:53 +0100 | |
---|---|---|
committer | 2023-03-01 00:33:29 +0100 | |
commit | c40c89bb4edc22c4a60d8677c660a9ab7eb47e92 (patch) | |
tree | 3ba72592f324dd7bef32773211b093e4949d6ff0 /src | |
parent | 6d252785e83218eeb5d080836281c90b86ca0e03 (diff) | |
download | rtic-c40c89bb4edc22c4a60d8677c660a9ab7eb47e92.tar.gz rtic-c40c89bb4edc22c4a60d8677c660a9ab7eb47e92.tar.zst rtic-c40c89bb4edc22c4a60d8677c660a9ab7eb47e92.zip |
Clippy fixes
Diffstat (limited to 'src')
-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 bfd0f6dd..091cfb87 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); |