Skip to content

Commit

Permalink
address clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebenfield committed Dec 16, 2024
1 parent d3b618e commit c06978f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/src/ratatui_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ impl Ui for RatatuiUi {
fn display_user_data(&mut self, data: &UserData<'_>) {
self.data.code = data.code.to_string();
self.data.highlight = data.highlight;
self.data.result = data.result.map(|s| s.to_string()).unwrap_or(String::new());
self.data.result = data.result.map(|s| s.to_string()).unwrap_or_default();
self.data.watchpoints.clear();
self.data.watchpoints.extend(data.watchpoints.iter().enumerate().map(|(i, s)| format!("{i:>2} {s}")));
self.data.message = data.message.to_string();
Expand Down

0 comments on commit c06978f

Please sign in to comment.