diff --git a/core/src/imports.rs b/core/src/imports.rs index 256b478..ec2cba3 100644 --- a/core/src/imports.rs +++ b/core/src/imports.rs @@ -39,12 +39,12 @@ pub use std::sync::OnceLock; pub use std::sync::{Arc, Mutex, MutexGuard, RwLock}; pub use std::time::Duration; +pub use workflow_core::abortable::Abortable; pub use workflow_core::channel::{oneshot, Channel, Receiver, Sender}; pub use workflow_core::enums::Describe; pub use workflow_core::extensions::is_not_empty::*; pub use workflow_core::task::interval; pub use workflow_core::time::{unixtime_as_millis_f64, Instant}; -pub use workflow_core::abortable::Abortable; pub use workflow_i18n::*; pub use workflow_log::*; diff --git a/core/src/primitives/transaction.rs b/core/src/primitives/transaction.rs index f6541b4..23d5719 100644 --- a/core/src/primitives/transaction.rs +++ b/core/src/primitives/transaction.rs @@ -295,8 +295,7 @@ impl Transaction { .. } => { let job = if let Some(payment_value) = payment_value { - let mut job = ljb(&header) - .with_icon_font(icon_font_id); + let mut job = ljb(&header).with_icon_font(icon_font_id); job = job .icon( diff --git a/core/src/runtime/mod.rs b/core/src/runtime/mod.rs index 1e640f2..73050fc 100644 --- a/core/src/runtime/mod.rs +++ b/core/src/runtime/mod.rs @@ -318,9 +318,7 @@ pub fn halt() { runtime.try_send(Events::Exit).ok(); runtime.kaspa_service().clone().terminate(); - let handle = tokio::spawn(async move { - runtime.shutdown().await - }); + let handle = tokio::spawn(async move { runtime.shutdown().await }); while !handle.is_finished() { std::thread::sleep(std::time::Duration::from_millis(50));