mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 19:00:46 +00:00
Update dependencies
This commit is contained in:
parent
7f135eeb26
commit
94c67b2257
12
Cargo.toml
12
Cargo.toml
@ -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"]
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user