ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

[autofix.ci] apply automated fixes

authored by

autofix-ci[bot] and committed by
marshmallow
a20f1f98 b8e70d5a

+7 -19
+3 -5
wire/cli/src/tracing_setup.rs
··· 3 3 4 4 use std::{ 5 5 collections::VecDeque, 6 - io::{self, Stderr, Write, stderr}, time::Duration, 6 + io::{self, Stderr, Write, stderr}, 7 + time::Duration, 7 8 }; 8 9 9 10 use clap_verbosity_flag::{LogLevel, Verbosity}; 10 - use lib::{ 11 - STDIN_CLOBBER_LOCK, 12 - status::{STATUS}, 13 - }; 11 + use lib::{STDIN_CLOBBER_LOCK, status::STATUS}; 14 12 use owo_colors::{OwoColorize, Stream, Style}; 15 13 use tracing::{Level, Subscriber}; 16 14 use tracing_log::AsTrace;
+1 -5
wire/lib/src/lib.rs
··· 13 13 14 14 use tokio::sync::{AcquireError, Semaphore, SemaphorePermit}; 15 15 16 - use crate::{ 17 - errors::HiveLibError, 18 - hive::node::Name, 19 - status::{STATUS}, 20 - }; 16 + use crate::{errors::HiveLibError, hive::node::Name, status::STATUS}; 21 17 22 18 pub mod commands; 23 19 pub mod hive;
+3 -9
wire/lib/src/status.rs
··· 24 24 pub struct Status { 25 25 statuses: HashMap<String, NodeStatus>, 26 26 began: Instant, 27 - show_progress: bool 27 + show_progress: bool, 28 28 } 29 29 30 30 /// global status used for the progress bar in the cli crate ··· 35 35 Self { 36 36 statuses: HashMap::default(), 37 37 began: Instant::now(), 38 - show_progress: false 38 + show_progress: false, 39 39 } 40 40 } 41 41 ··· 120 120 121 121 let _ = write!(&mut msg, "]"); 122 122 123 - let _ = write!( 124 - &mut msg, 125 - " {}s", 126 - self.began 127 - .elapsed() 128 - .as_secs() 129 - ); 123 + let _ = write!(&mut msg, " {}s", self.began.elapsed().as_secs()); 130 124 131 125 msg 132 126 }