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 {
|
||||
#[inline]
|
||||
fn from(c: &'static Control) -> Self { Self::Borrowed(c) }
|
||||
}
|
||||
|
||||
impl From<Control> for ControlCow {
|
||||
#[inline]
|
||||
fn from(c: Control) -> Self { Self::Owned(c) }
|
||||
}
|
||||
|
||||
impl Deref for ControlCow {
|
||||
type Target = Control;
|
||||
|
||||
#[inline]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
match self {
|
||||
Self::Owned(c) => c,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue