-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: debugger improvements 2 #6494
Conversation
a73c1fc
to
2b21b3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a lot cleaner, ty.
only nits
let mut debugger = DebuggerBuilder::new() | ||
.debug_arena(&result.debug) | ||
.decoder(&decoder) | ||
.sources(sources) | ||
.build()?; | ||
debugger.try_run()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this
/// Creates a new debugger builder. | ||
#[inline] | ||
pub fn new() -> Self { | ||
Self::default() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
personally, I think new -> default is redundant
Motivation
Follow-up to #6491
No functional changes, just clean up around terminal init by using RAII.
Bad diff because of moving to new file :(
Solution