Skip to content

Commit

Permalink
fix(app): fix lint issue with string cloning
Browse files Browse the repository at this point in the history
Signed-off-by: Deep Panchal <deep302001@gmail.com>
  • Loading branch information
deepanchal committed Jul 3, 2024
1 parent 28ccfb1 commit e6d43d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl App {
});
})?;
}
Action::StatusLine(ref s) => self.state.status_line = s.clone(),
Action::StatusLine(ref s) => self.state.status_line.clone_from(s),
Action::FocusNext => match self.state.mode {
Mode::Book => {
self.state.mode = Mode::Page;
Expand Down

0 comments on commit e6d43d9

Please sign in to comment.