style(history): indentation

This commit is contained in:
OliverGuy 2026-05-18 19:34:21 +02:00
parent b6ee279c2d
commit 8338ba2690

View file

@ -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
}
} }