mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 18:06:18 +04:00
Fix clippy warnings
This commit is contained in:
parent
cf7237d0b9
commit
9939dbf119
@ -334,7 +334,7 @@ pub async fn handle_debugger_message(&mut self, payload: helix_dap::Payload) {
|
|||||||
}
|
}
|
||||||
// TODO: fetch breakpoints (in case we're attaching)
|
// TODO: fetch breakpoints (in case we're attaching)
|
||||||
|
|
||||||
if let Ok(_) = debugger.configuration_done().await {
|
if debugger.configuration_done().await.is_ok() {
|
||||||
self.editor
|
self.editor
|
||||||
.set_status("Debugged application started".to_owned());
|
.set_status("Debugged application started".to_owned());
|
||||||
}; // TODO: do we need to handle error?
|
}; // TODO: do we need to handle error?
|
||||||
|
@ -471,7 +471,7 @@ pub fn dap_switch_stack_frame(cx: &mut Context) {
|
|||||||
Some(thread_id) => thread_id,
|
Some(thread_id) => thread_id,
|
||||||
None => {
|
None => {
|
||||||
cx.editor
|
cx.editor
|
||||||
.set_error(format!("No thread is currently active"));
|
.set_error("No thread is currently active".to_owned());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user