Skip to content

Commit

Permalink
Remove new once_cell dep.
Browse files Browse the repository at this point in the history
  • Loading branch information
CoreyShupe committed May 6, 2024
1 parent 582d735 commit 2564912
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion theseus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions theseus/src/api/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -101,7 +100,7 @@ pub async fn get_logs_from_type(
clear_contents: Option<bool>,
logs: &mut Vec<crate::Result<Logs>>,
) -> crate::Result<()> {
let now = Lazy::<SystemTime, _>::new(|| SystemTime::now());
let now = SystemTime::now();

let logs_folder = match log_type {
LogType::InfoLog => {
Expand Down

0 comments on commit 2564912

Please sign in to comment.