mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +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]
|
[build-dependencies.skeptic]
|
||||||
optional = true
|
optional = true
|
||||||
version = "0.7"
|
version = "0.10"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
num = "0.1"
|
num = "0.1"
|
||||||
odds = "0.2"
|
odds = "0.2"
|
||||||
owning_ref = "0.2.4"
|
owning_ref = "0.3"
|
||||||
toml = "0.3"
|
toml = "0.4"
|
||||||
unicode-segmentation = "1.0"
|
unicode-segmentation = "1.0"
|
||||||
unicode-width = "0.1"
|
unicode-width = "0.1"
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ version = "1.3.1"
|
|||||||
[dependencies.ncurses]
|
[dependencies.ncurses]
|
||||||
features = ["wide"]
|
features = ["wide"]
|
||||||
optional = true
|
optional = true
|
||||||
version = "5.85.0"
|
version = "5.86.0"
|
||||||
|
|
||||||
[dependencies.pancurses]
|
[dependencies.pancurses]
|
||||||
features = ["wide"]
|
features = ["wide"]
|
||||||
@ -51,11 +51,11 @@ version = "0.8"
|
|||||||
|
|
||||||
[dependencies.termion]
|
[dependencies.termion]
|
||||||
optional = true
|
optional = true
|
||||||
version = "1.3.0"
|
version = "1.4.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rand = "0.3"
|
rand = "0.3"
|
||||||
skeptic = "0.7"
|
skeptic = "0.10"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["ncurses-backend"]
|
default = ["ncurses-backend"]
|
||||||
|
@ -37,11 +37,7 @@ impl<V: View> IdView<V> {
|
|||||||
pub fn get_mut(&mut self) -> ViewRef<V> {
|
pub fn get_mut(&mut self) -> ViewRef<V> {
|
||||||
let cell_ref = RcRef::new(self.view.clone());
|
let cell_ref = RcRef::new(self.view.clone());
|
||||||
|
|
||||||
// The unsafe part here is tied to OwningHandle's limitation.
|
OwningHandle::new_mut(cell_ref)
|
||||||
OwningHandle::new(
|
|
||||||
cell_ref,
|
|
||||||
|x| unsafe { x.as_ref() }.unwrap().borrow_mut(),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user