Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
d0cd committed Dec 6, 2024
1 parent 751ccf1 commit 877cc0c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion interpreter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ pub fn interpret(
interpreter.update_watchpoints()?;

watchpoints.extend(interpreter.watchpoints.iter().map(|watchpoint| {
format!("{:>20} = {}", watchpoint.code, if let Some(s) = &watchpoint.last_result { &*s } else { "?" })
format!(
"{:>20} = {}",
watchpoint.code,
if let Some(s) = &watchpoint.last_result { s.as_str() } else { "?" }
)
}));

let user_data = ui::UserData {
Expand Down

0 comments on commit 877cc0c

Please sign in to comment.