Skip to content

Commit

Permalink
Fix warnings on current nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
lopopolo committed Feb 23, 2024
1 parent 73ece6f commit 57b6085
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,10 @@
use core::borrow;
use core::cell::{Cell, RefCell};
use core::cmp::Ordering;
use core::convert::From;
use core::fmt;
use core::hash::{Hash, Hasher};
use core::intrinsics::abort;
use core::marker::{PhantomData, Unpin};
use core::marker::PhantomData;
use core::mem::{self, ManuallyDrop, MaybeUninit};
use core::ops::Deref;
use core::pin::Pin;
Expand Down Expand Up @@ -1828,11 +1827,6 @@ pub(crate) trait RcInnerPtr {
self.weak_ref().set(self.weak() - 1);
}

#[inline]
fn kill(&self) {
self.strong_ref().set(0);
}

#[inline]
fn is_dead(&self) -> bool {
self.strong() == 0 || self.is_uninit()
Expand Down

0 comments on commit 57b6085

Please sign in to comment.