We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9cb765 commit 2f950a7Copy full SHA for 2f950a7
src/main.rs
@@ -14,7 +14,6 @@
14
15
#![recursion_limit="300"]
16
#![feature(const_fn)]
17
-#![feature(rc_would_unwrap)]
18
19
extern crate sdl2;
20
extern crate zip;
src/ui/mod.rs
@@ -80,7 +80,7 @@ macro_rules! define_elements {
80
fn is_unused(&self) -> bool {
81
match *self {
82
$(
83
- Element::$name(ref inner) => Rc::would_unwrap(inner),
+ Element::$name(ref inner) => Rc::strong_count(inner) == 1,
84
)*
85
}
86
0 commit comments