Fix use of deprecated Rc:would_unwrap

This commit is contained in:
satoshinm 2017-05-14 01:58:34 -07:00 committed by Matthew Collins
parent a9cb7654e4
commit 2f950a749c
2 changed files with 1 additions and 2 deletions

View File

@ -14,7 +14,6 @@
#![recursion_limit="300"]
#![feature(const_fn)]
#![feature(rc_would_unwrap)]
extern crate sdl2;
extern crate zip;

View File

@ -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,
)*
}
}