Skip to content
Snippets Groups Projects
Commit bf4e3bf7 authored by Eduardo Trujillo's avatar Eduardo Trujillo
Browse files

style(thread): Run cargo fmt

parent fff02b59
No related branches found
No related tags found
No related merge requests found
Pipeline #660 passed
......@@ -183,11 +183,7 @@ mod tests {
use crate::thread::{manager::FinishReason, monitor::ThreadMonitor};
use lazy_static::lazy_static;
use std::{
sync::mpsc,
thread,
time::Duration,
};
use std::{sync::mpsc, thread, time::Duration};
use super::ThreadManager;
......
......@@ -79,7 +79,7 @@ impl ThreadMonitor {
// If we are already initialized, then do nothing. Adding another
// panic hook for the same monitor would cause issues.
if state.initialized {
return Err(Error::Reinitialized);
return Err(Error::Reinitialized);
}
let hook = panic::take_hook();
......@@ -104,7 +104,6 @@ impl ThreadMonitor {
hook(panic_info)
}));
state.initialized = true;
Ok(())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment