Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebenfield committed Dec 6, 2024
1 parent 136c8ca commit abcbc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ 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 } else { "?" })
}));

let user_data = ui::UserData {
Expand Down

0 comments on commit abcbc82

Please sign in to comment.