Skip to content

Commit 1c6d771

Browse files
committed
Fix clippy error with rust update
1 parent dcfa60b commit 1c6d771

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/src/lock/cell_lock.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub struct RawCellMutex {
1010
}
1111

1212
unsafe impl RawMutex for RawCellMutex {
13+
#[allow(clippy::declare_interior_mutable_const)]
1314
const INIT: Self = RawCellMutex {
1415
locked: Cell::new(false),
1516
};
@@ -59,7 +60,8 @@ impl RawCellRwLock {
5960
}
6061

6162
unsafe impl RawRwLock for RawCellRwLock {
62-
const INIT: Self = Self {
63+
#[allow(clippy::declare_interior_mutable_const)]
64+
const INIT: Self = RawCellRwLock {
6365
state: Cell::new(0),
6466
};
6567

0 commit comments

Comments
 (0)