diff --git a/src/main.rs b/src/main.rs index f4aa930..3ad617d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,7 +14,6 @@ #![recursion_limit="300"] #![feature(const_fn)] -#![feature(rc_would_unwrap)] extern crate sdl2; extern crate zip; diff --git a/src/ui/mod.rs b/src/ui/mod.rs index f46aa3f..fe08208 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -80,7 +80,7 @@ macro_rules! define_elements { fn is_unused(&self) -> bool { match *self { $( - Element::$name(ref inner) => Rc::would_unwrap(inner), + Element::$name(ref inner) => Rc::strong_count(inner) == 1, )* } }