From c06978f35a19496396741700efe7660fb4639e3e Mon Sep 17 00:00:00 2001 From: Michael Benfield Date: Mon, 16 Dec 2024 08:57:50 -0800 Subject: [PATCH] address clippy lint --- interpreter/src/ratatui_ui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/src/ratatui_ui.rs b/interpreter/src/ratatui_ui.rs index 3dfd4db746..1b16b67f5e 100644 --- a/interpreter/src/ratatui_ui.rs +++ b/interpreter/src/ratatui_ui.rs @@ -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();