From 82eb352e9fc2167ded374247857d2f3e47b5ea7d Mon Sep 17 00:00:00 2001 From: Jeong Yunwon Date: Mon, 18 Apr 2022 03:21:58 +0900 Subject: [PATCH] common::rc::PyWeak is not used and confusing by its name --- common/src/rc.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/src/rc.rs b/common/src/rc.rs index 8021b6112..81207e840 100644 --- a/common/src/rc.rs +++ b/common/src/rc.rs @@ -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)` with a // newtype; requires the arbitrary_self_types unstable feature @@ -10,5 +10,3 @@ use std::sync::{Arc, Weak}; pub type PyRc = Arc; #[cfg(not(feature = "threading"))] pub type PyRc = Rc; - -pub type PyWeak = Weak;