Fix use of deprecated Rc:would_unwrap
This commit is contained in:
parent
a9cb7654e4
commit
2f950a749c
|
@ -14,7 +14,6 @@
|
|||
|
||||
#![recursion_limit="300"]
|
||||
#![feature(const_fn)]
|
||||
#![feature(rc_would_unwrap)]
|
||||
|
||||
extern crate sdl2;
|
||||
extern crate zip;
|
||||
|
|
|
@ -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,
|
||||
)*
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue