mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Add impl Borror<Cursive> for CursiveRunnable
This commit is contained in:
parent
5becb0110a
commit
73453b2097
@ -8,7 +8,7 @@ license = "MIT"
|
|||||||
name = "cursive"
|
name = "cursive"
|
||||||
readme = "../Readme.md"
|
readme = "../Readme.md"
|
||||||
repository = "https://github.com/gyscos/cursive"
|
repository = "https://github.com/gyscos/cursive"
|
||||||
version = "0.16.2"
|
version = "0.16.3"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
|
@ -33,6 +33,18 @@ impl std::ops::DerefMut for CursiveRunnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl std::borrow::Borrow<Cursive> for CursiveRunnable {
|
||||||
|
fn borrow(&self) -> &Cursive {
|
||||||
|
&*self
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl std::borrow::BorrowMut<Cursive> for CursiveRunnable {
|
||||||
|
fn borrow_mut(&mut self) -> &mut Cursive {
|
||||||
|
&mut *self
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn boxed(e: impl std::error::Error + 'static) -> Box<dyn std::error::Error> {
|
fn boxed(e: impl std::error::Error + 'static) -> Box<dyn std::error::Error> {
|
||||||
Box::new(e)
|
Box::new(e)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user