From 256491277b0e7d0e4ffb75eb71a58828d60edd91 Mon Sep 17 00:00:00 2001 From: Corey Shupe Date: Mon, 6 May 2024 04:06:16 -0400 Subject: [PATCH] Remove new once_cell dep. --- Cargo.lock | 1 - theseus/Cargo.toml | 1 - theseus/src/api/logs.rs | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b1d85d5ae..33d4140f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5117,7 +5117,6 @@ dependencies = [ "lazy_static", "notify", "notify-debouncer-mini", - "once_cell", "p256", "paste", "rand 0.8.5", diff --git a/theseus/Cargo.toml b/theseus/Cargo.toml index bca628903..542646900 100644 --- a/theseus/Cargo.toml +++ b/theseus/Cargo.toml @@ -65,7 +65,6 @@ p256 = { version = "0.13.2", features = ["ecdsa"] } rand = "0.8" byteorder = "1.5.0" base64 = "0.22.0" -once_cell = "1.19.0" [target.'cfg(windows)'.dependencies] winreg = "0.52.0" diff --git a/theseus/src/api/logs.rs b/theseus/src/api/logs.rs index 461c418d2..c32c0d2f3 100644 --- a/theseus/src/api/logs.rs +++ b/theseus/src/api/logs.rs @@ -2,7 +2,6 @@ use std::io::{Read, SeekFrom}; use std::time::SystemTime; use futures::TryFutureExt; -use once_cell::unsync::Lazy; use serde::{Deserialize, Serialize}; use tokio::{ fs::File, @@ -101,7 +100,7 @@ pub async fn get_logs_from_type( clear_contents: Option, logs: &mut Vec>, ) -> crate::Result<()> { - let now = Lazy::::new(|| SystemTime::now()); + let now = SystemTime::now(); let logs_folder = match log_type { LogType::InfoLog => {