Skip to content

Commit 2f950a7

Browse files
satoshinmThinkofname
authored andcommitted
Fix use of deprecated Rc:would_unwrap
1 parent a9cb765 commit 2f950a7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
#![recursion_limit="300"]
1616
#![feature(const_fn)]
17-
#![feature(rc_would_unwrap)]
1817

1918
extern crate sdl2;
2019
extern crate zip;

src/ui/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ macro_rules! define_elements {
8080
fn is_unused(&self) -> bool {
8181
match *self {
8282
$(
83-
Element::$name(ref inner) => Rc::would_unwrap(inner),
83+
Element::$name(ref inner) => Rc::strong_count(inner) == 1,
8484
)*
8585
}
8686
}

0 commit comments

Comments
 (0)