chore: Format files

This commit is contained in:
Gerald Pinder 2025-04-29 00:50:28 -04:00
parent 2f6b2b4b70
commit 44cecab3f4
42 changed files with 130 additions and 108 deletions

View file

@ -1,8 +1,8 @@
use std::env;
use std::path::PathBuf;
use syntect::dumps;
use syntect::parsing::syntax_definition::SyntaxDefinition;
use syntect::parsing::SyntaxSetBuilder;
use syntect::parsing::syntax_definition::SyntaxDefinition;
fn main() {
let mut ssb = SyntaxSetBuilder::new();

View file

@ -113,7 +113,9 @@ fn exec_timeout(cmd: &mut Command, time_limit: Duration) -> Option<CommandOutput
}
Ok(None) => {
log::warn!("Executing command {:?} timed out.", cmd.get_program());
log::warn!("You can set command_timeout in your config to a higher value to allow longer-running commands to keep executing.");
log::warn!(
"You can set command_timeout in your config to a higher value to allow longer-running commands to keep executing."
);
None
}
Err(error) => {

View file

@ -18,15 +18,15 @@ use std::{
use base64::prelude::*;
use blake2::{
digest::{Update, VariableOutput},
Blake2bVar,
digest::{Update, VariableOutput},
};
use cached::proc_macro::once;
use chrono::Local;
use comlexr::cmd;
use format_serde_error::SerdeError;
use log::{trace, warn};
use miette::{miette, Context, IntoDiagnostic, Result};
use miette::{Context, IntoDiagnostic, Result, miette};
use crate::constants::CONTAINER_FILE;
@ -110,7 +110,7 @@ where
warn!("Failed operation, will retry {retries} more time(s). Error:\n{e:?}");
thread::sleep(Duration::from_secs(delay_secs));
}
};
}
}
}

View file

@ -2,7 +2,7 @@ use std::str::FromStr;
use miette::bail;
use semver::Prerelease;
use serde::{de::Error, Deserialize, Serialize};
use serde::{Deserialize, Serialize, de::Error};
#[derive(Debug, Clone, Serialize)]
pub struct Version(semver::Version);

View file

@ -1,6 +1,6 @@
use clap::ValueEnum;
use log::trace;
use miette::{miette, IntoDiagnostic, Result};
use miette::{IntoDiagnostic, Result, miette};
use serde::ser::Serialize;
use syntect::{dumps, easy::HighlightLines, highlighting::ThemeSet, parsing::SyntaxSet};

View file

@ -4,7 +4,7 @@ use std::{
thread::{self, ThreadId},
};
use miette::{miette, Result};
use miette::{Result, miette};
use crate::string;