mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
614d8724a8
commit
f85e8c9a80
1 changed files with 0 additions and 3 deletions
|
|
@ -49,19 +49,16 @@ pub enum ControlCow {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<&'static Control> for ControlCow {
|
impl From<&'static Control> for ControlCow {
|
||||||
#[inline]
|
|
||||||
fn from(c: &'static Control) -> Self { Self::Borrowed(c) }
|
fn from(c: &'static Control) -> Self { Self::Borrowed(c) }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Control> for ControlCow {
|
impl From<Control> for ControlCow {
|
||||||
#[inline]
|
|
||||||
fn from(c: Control) -> Self { Self::Owned(c) }
|
fn from(c: Control) -> Self { Self::Owned(c) }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Deref for ControlCow {
|
impl Deref for ControlCow {
|
||||||
type Target = Control;
|
type Target = Control;
|
||||||
|
|
||||||
#[inline]
|
|
||||||
fn deref(&self) -> &Self::Target {
|
fn deref(&self) -> &Self::Target {
|
||||||
match self {
|
match self {
|
||||||
Self::Owned(c) => c,
|
Self::Owned(c) => c,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue