aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2023-01-08 21:30:53 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-01 00:33:29 +0100
commitc40c89bb4edc22c4a60d8677c660a9ab7eb47e92 (patch)
tree3ba72592f324dd7bef32773211b093e4949d6ff0 /src
parent6d252785e83218eeb5d080836281c90b86ca0e03 (diff)
downloadrtic-c40c89bb4edc22c4a60d8677c660a9ab7eb47e92.tar.gz
rtic-c40c89bb4edc22c4a60d8677c660a9ab7eb47e92.tar.zst
rtic-c40c89bb4edc22c4a60d8677c660a9ab7eb47e92.zip
Clippy fixes
Diffstat (limited to 'src')
-rw-r--r--src/export.rs4
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);