Skip to content

Commit

Permalink
Fix lint with all-is-cubes/std disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Sep 21, 2024
1 parent ba9d574 commit ce84ff9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion all-is-cubes/src/space/light/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use euclid::default::Vector3D;

/// Acts as polyfill for float methods
#[cfg(not(feature = "std"))]
#[expect(unused_imports)]
use num_traits::float::Float as _;

use crate::math::{NotNan, Rgb};
Expand Down
8 changes: 8 additions & 0 deletions all-is-cubes/src/util/maybe_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ impl<'a, T> ops::DerefMut for RwLockWriteGuard<'a, T> {
}

pub(crate) enum LockError<G> {
#[cfg_attr(
not(feature = "std"),
expect(dead_code, reason = "no poisoning from RefCell")
)]
Poisoned(G),
}

Expand Down Expand Up @@ -228,6 +232,10 @@ impl<G> fmt::Debug for LockError<G> {
}

pub(crate) enum TryLockError<G> {
#[cfg_attr(
not(feature = "std"),
expect(dead_code, reason = "no poisoning from RefCell")
)]
Poisoned(G),
WouldBlock,
}
Expand Down

0 comments on commit ce84ff9

Please sign in to comment.