diff --git a/Cargo.lock b/Cargo.lock index a5ac06eeb6..7649f7fd23 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2582,7 +2582,6 @@ dependencies = [ "linkify", "log", "octocrab", - "once_cell", "openssl-sys", "par-stream", "path-clean", diff --git a/lychee-bin/src/archive/wayback/mod.rs b/lychee-bin/src/archive/wayback/mod.rs index 3dfec70bd2..577cf092e7 100644 --- a/lychee-bin/src/archive/wayback/mod.rs +++ b/lychee-bin/src/archive/wayback/mod.rs @@ -1,13 +1,13 @@ +use std::sync::LazyLock; use std::time::Duration; -use once_cell::sync::Lazy; use serde::de::Error as SerdeError; use serde::{Deserialize, Deserializer}; use http::StatusCode; use reqwest::{Client, Error, Url}; -static WAYBACK_URL: Lazy = - Lazy::new(|| Url::parse("https://archive.org/wayback/available").unwrap()); +static WAYBACK_URL: LazyLock = + LazyLock::new(|| Url::parse("https://archive.org/wayback/available").unwrap()); pub(crate) async fn get_wayback_link(url: &Url, timeout: Duration) -> Result, Error> { let mut archive_url: Url = WAYBACK_URL.clone(); diff --git a/lychee-bin/src/commands/check.rs b/lychee-bin/src/commands/check.rs index 641c762a46..4cb47468c1 100644 --- a/lychee-bin/src/commands/check.rs +++ b/lychee-bin/src/commands/check.rs @@ -183,7 +183,7 @@ where if let Some(pb) = &bar { pb.inc_length(1); pb.set_message(request.to_string()); - }; + } send_req .send(Ok(request)) .await diff --git a/lychee-bin/src/formatters/color.rs b/lychee-bin/src/formatters/color.rs index eaa9929c27..b9cba81725 100644 --- a/lychee-bin/src/formatters/color.rs +++ b/lychee-bin/src/formatters/color.rs @@ -1,21 +1,25 @@ //! Defines the colors used in the output of the CLI. +use std::sync::LazyLock; + use console::Style; use log::Level; -use once_cell::sync::Lazy; -pub(crate) static NORMAL: Lazy