Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Dec 7, 2023
1 parent 2f7b78b commit 1ef2231
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;

Expand Down
3 changes: 1 addition & 2 deletions core/src/primitives/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 1 addition & 3 deletions core/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 1ef2231

Please sign in to comment.