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

[autofix.ci] apply automated fixes

authored by

autofix-ci[bot] and committed by
GitHub
d1be9d29 6e74c271

+6 -16
+1 -1
wire/cli/src/apply.rs
··· 9 9 use miette::{Diagnostic, IntoDiagnostic, Result}; 10 10 use std::collections::HashSet; 11 11 use std::io::Read; 12 - use std::sync::{Arc, Mutex}; 12 + use std::sync::Arc; 13 13 use thiserror::Error; 14 14 use tracing::{Span, error, info}; 15 15
-3
wire/cli/src/main.rs
··· 4 4 #![deny(clippy::pedantic)] 5 5 #![allow(clippy::missing_panics_doc)] 6 6 use std::process::Command; 7 - use std::sync::Arc; 8 - use std::sync::Mutex; 9 7 10 8 use crate::cli::Cli; 11 9 use crate::cli::ToSubCommandModifiers; ··· 13 11 use clap::CommandFactory; 14 12 use clap::Parser; 15 13 use clap_complete::generate; 16 - use lib::STDIN_CLOBBER_LOCK; 17 14 use lib::hive::Hive; 18 15 use lib::hive::get_hive_location; 19 16 use miette::IntoDiagnostic;
+2 -2
wire/cli/src/tracing_setup.rs
··· 4 4 use std::{ 5 5 collections::VecDeque, 6 6 io::{self, Stderr, Write, stderr}, 7 - sync::{Arc, Mutex, TryLockError}, 7 + sync::TryLockError, 8 8 }; 9 9 10 10 use clap_verbosity_flag::{Verbosity, WarnLevel}; ··· 69 69 let layer = tracing_subscriber::fmt::layer::<Registry>() 70 70 .without_time() 71 71 .with_target(false) 72 - .with_writer(move || NonClobberingWriter::new()) 72 + .with_writer(NonClobberingWriter::new) 73 73 .with_filter(filter); 74 74 75 75 registry.with(layer).init();
+1 -4
wire/lib/src/commands/common.rs
··· 1 1 // SPDX-License-Identifier: AGPL-3.0-or-later 2 2 // Copyright 2024-2025 wire Contributors 3 3 4 - use std::{ 5 - collections::HashMap, 6 - sync::{Arc, Mutex}, 7 - }; 4 + use std::collections::HashMap; 8 5 9 6 use tracing::instrument; 10 7
+1 -5
wire/lib/src/commands/mod.rs
··· 1 1 // SPDX-License-Identifier: AGPL-3.0-or-later 2 2 // Copyright 2024-2025 wire Contributors 3 3 4 - use std::{ 5 - collections::HashMap, 6 - str::from_utf8, 7 - sync::{Arc, LazyLock, Mutex}, 8 - }; 4 + use std::{collections::HashMap, str::from_utf8, sync::LazyLock}; 9 5 10 6 use aho_corasick::AhoCorasick; 11 7 use gjson::Value;
+1 -1
wire/lib/src/hive/mod.rs
··· 11 11 use std::fs; 12 12 use std::path::PathBuf; 13 13 use std::str::FromStr; 14 - use std::sync::{Arc, Mutex}; 14 + use std::sync::Arc; 15 15 use tracing::{info, instrument}; 16 16 17 17 use crate::commands::common::evaluate_hive_attribute;