Update dependencies

This commit is contained in:
Alexandre Bury 2017-07-07 10:49:51 -07:00
parent 7f135eeb26
commit 94c67b2257
2 changed files with 7 additions and 11 deletions

View File

@ -17,13 +17,13 @@ repository = "gyscos/Cursive"
[build-dependencies.skeptic]
optional = true
version = "0.7"
version = "0.10"
[dependencies]
num = "0.1"
odds = "0.2"
owning_ref = "0.2.4"
toml = "0.3"
owning_ref = "0.3"
toml = "0.4"
unicode-segmentation = "1.0"
unicode-width = "0.1"
@ -42,7 +42,7 @@ version = "1.3.1"
[dependencies.ncurses]
features = ["wide"]
optional = true
version = "5.85.0"
version = "5.86.0"
[dependencies.pancurses]
features = ["wide"]
@ -51,11 +51,11 @@ version = "0.8"
[dependencies.termion]
optional = true
version = "1.3.0"
version = "1.4.0"
[dev-dependencies]
rand = "0.3"
skeptic = "0.7"
skeptic = "0.10"
[features]
default = ["ncurses-backend"]

View File

@ -37,11 +37,7 @@ impl<V: View> IdView<V> {
pub fn get_mut(&mut self) -> ViewRef<V> {
let cell_ref = RcRef::new(self.view.clone());
// The unsafe part here is tied to OwningHandle's limitation.
OwningHandle::new(
cell_ref,
|x| unsafe { x.as_ref() }.unwrap().borrow_mut(),
)
OwningHandle::new_mut(cell_ref)
}
}