mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
common::rc::PyWeak is not used and confusing by its name
This commit is contained in:
1 parent
d958d91501
commit
82eb352e9f
1 file changed
+2
-4
+2
-4
@@ -1,7 +1,7 @@
|
||||
#[cfg(not(feature = "threading"))]
|
||||
use std::rc::{Rc, Weak};
|
||||
use std::rc::Rc;
|
||||
#[cfg(feature = "threading")]
|
||||
use std::sync::{Arc, Weak};
|
||||
use std::sync::Arc;
|
||||
|
||||
// type aliases instead of newtypes because you can't do `fn method(self: PyRc<Self>)` with a
|
||||
// newtype; requires the arbitrary_self_types unstable feature
|
||||
@@ -10,5 +10,3 @@ use std::sync::{Arc, Weak};
|
||||
pub type PyRc<T> = Arc<T>;
|
||||
#[cfg(not(feature = "threading"))]
|
||||
pub type PyRc<T> = Rc<T>;
|
||||
|
||||
pub type PyWeak<T> = Weak<T>;
|
||||
Reference in new issue
Block a user