Skip to content

Commit

Permalink
undo more rustfmt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xubaiwang committed Oct 10, 2024
1 parent 4f4ca2f commit 1741df7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/app/panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub struct Panel {
}

impl Panel {

pub fn new(
id: PanelId,
state: Box<dyn PanelState>,
Expand All @@ -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());
}

Expand Down
7 changes: 4 additions & 3 deletions src/command/panel_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub struct PanelInput {
}

impl PanelInput {

pub fn new(area: Area) -> Self {
Self {
input_field: InputField::new(area),
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1741df7

Please sign in to comment.