mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 22:05:37 +01:00
Clippy lints
This commit is contained in:
parent
c78177c37e
commit
c297b4ee8d
7 changed files with 16 additions and 8 deletions
|
|
@ -95,12 +95,20 @@ impl<T> RacyCell<T> {
|
|||
}
|
||||
|
||||
/// Get `*mut T`
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
/// See documentation notes for [`RacyCell`]
|
||||
#[inline(always)]
|
||||
pub unsafe fn get_mut(&self) -> *mut T {
|
||||
self.0.get()
|
||||
}
|
||||
|
||||
/// Get `*const T`
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
/// See documentation notes for [`RacyCell`]
|
||||
#[inline(always)]
|
||||
pub unsafe fn get(&self) -> *const T {
|
||||
self.0.get()
|
||||
|
|
|
|||
|
|
@ -176,6 +176,6 @@ where
|
|||
Mono: Monotonic,
|
||||
{
|
||||
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
|
||||
Some(self.cmp(&other))
|
||||
Some(self.cmp(other))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue