mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
style(history): indentation
This commit is contained in:
parent
b6ee279c2d
commit
8338ba2690
1 changed files with 4 additions and 8 deletions
|
|
@ -11,8 +11,8 @@ pub struct Input {
|
||||||
pub(super) inner: yazi_widgets::input::Input,
|
pub(super) inner: yazi_widgets::input::Input,
|
||||||
pub history: std::collections::HashMap<SStr, yazi_widgets::input::InputHistory>,
|
pub history: std::collections::HashMap<SStr, yazi_widgets::input::InputHistory>,
|
||||||
|
|
||||||
pub visible: bool,
|
pub visible: bool,
|
||||||
pub title: String,
|
pub title: String,
|
||||||
pub position: Position,
|
pub position: Position,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -49,13 +49,9 @@ impl Input {
|
||||||
impl Deref for Input {
|
impl Deref for Input {
|
||||||
type Target = yazi_widgets::input::Input;
|
type Target = yazi_widgets::input::Input;
|
||||||
|
|
||||||
fn deref(&self) -> &Self::Target {
|
fn deref(&self) -> &Self::Target { &self.inner }
|
||||||
&self.inner
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl DerefMut for Input {
|
impl DerefMut for Input {
|
||||||
fn deref_mut(&mut self) -> &mut Self::Target {
|
fn deref_mut(&mut self) -> &mut Self::Target { &mut self.inner }
|
||||||
&mut self.inner
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue