chore: Clippy fixes
This commit is contained in:
parent
6bae48bd88
commit
5f648af104
15 changed files with 74 additions and 78 deletions
|
|
@ -2,22 +2,18 @@
|
|||
//! by this tool. It contains drivers for running, building, inspecting, and signing
|
||||
//! images that interface with tools like docker or podman.
|
||||
|
||||
#[cfg(any(feature = "sigstore", feature = "validate"))]
|
||||
use once_cell::sync::Lazy;
|
||||
#[cfg(any(feature = "sigstore", feature = "validate"))]
|
||||
use tokio::runtime::Runtime;
|
||||
|
||||
pub mod drivers;
|
||||
pub mod logging;
|
||||
pub mod signal_handler;
|
||||
|
||||
#[cfg(any(feature = "sigstore", feature = "validate"))]
|
||||
pub static ASYNC_RUNTIME: Lazy<Runtime> = Lazy::new(|| {
|
||||
tokio::runtime::Builder::new_multi_thread()
|
||||
.enable_all()
|
||||
.build()
|
||||
.unwrap()
|
||||
});
|
||||
pub static ASYNC_RUNTIME: std::sync::LazyLock<tokio::runtime::Runtime> =
|
||||
std::sync::LazyLock::new(|| {
|
||||
tokio::runtime::Builder::new_multi_thread()
|
||||
.enable_all()
|
||||
.build()
|
||||
.unwrap()
|
||||
});
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) mod test {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue