aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2021-12-25 14:58:30 +0000
committerGravatar GitHub <noreply@github.com> 2021-12-25 14:58:30 +0000
commitb74ca90f6049f54d856ca182f554448b348ff2bc (patch)
tree8845460c0caa37e4d60b60c09c0ca5a3fdcc5df4 /src
parentc78177c37e3192c7a41a3ea8e7c139751c1a8989 (diff)
parentc297b4ee8d619d903b1b1673e47a8df25637d01b (diff)
downloadrtic-b74ca90f6049f54d856ca182f554448b348ff2bc.tar.gz
rtic-b74ca90f6049f54d856ca182f554448b348ff2bc.tar.zst
rtic-b74ca90f6049f54d856ca182f554448b348ff2bc.zip
Merge #564
564: Clippy lints r=korken89 a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs8
-rw-r--r--src/tq.rs2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5fe35a95..a1a911ae 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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()
diff --git a/src/tq.rs b/src/tq.rs
index 0121de5f..26ebbd96 100644
--- a/src/tq.rs
+++ b/src/tq.rs
@@ -176,6 +176,6 @@ where
Mono: Monotonic,
{
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
- Some(self.cmp(&other))
+ Some(self.cmp(other))
}
}