summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author王虛白 <18016038327@189.cn>2024-10-10 22:50:44 +0800
committer王虛白 <18016038327@189.cn>2024-10-10 22:50:44 +0800
commit1741df7a0e266af0e7a2d53cb5f1088e5f926ec4 (patch)
tree8e082860eb890dcdfb543b9b2e1b3a68f53e1596
parent4f4ca2f9d04b9225aeaf015a5d1cbd73875a4719 (diff)
undo more rustfmt changes
-rw-r--r--src/app/panel.rs6
-rw-r--r--src/command/panel_input.rs7
2 files changed, 6 insertions, 7 deletions
diff --git a/src/app/panel.rs b/src/app/panel.rs
index e725485..6f54476 100644
--- a/src/app/panel.rs
+++ b/src/app/panel.rs
@@ -35,6 +35,7 @@ pub struct Panel {
}
impl Panel {
+
pub fn new(
id: PanelId,
state: Box<dyn PanelState>,
@@ -58,10 +59,7 @@ impl Panel {
pub fn set_error(&mut self, text: String) {
self.status = Status::from_error(text);
}
- pub fn set_message<S: Into<String>>(
- &mut self,
- md: S,
- ) {
+ pub fn set_message<S: Into<String>>(&mut self, md: S) {
self.status = Status::from_message(md.into());
}
diff --git a/src/command/panel_input.rs b/src/command/panel_input.rs
index b0f4d1d..855a182 100644
--- a/src/command/panel_input.rs
+++ b/src/command/panel_input.rs
@@ -31,6 +31,7 @@ pub struct PanelInput {
}
impl PanelInput {
+
pub fn new(area: Area) -> Self {
Self {
input_field: InputField::new(area),
@@ -379,9 +380,9 @@ impl PanelInput {
let verb = if self.is_key_allowed_for_verb(key, mode) {
self.find_key_verb(
- key,
- con,
- sel_info,
+ key,
+ con,
+ sel_info,
panel_state_type,
)
} else {