Skip to content

Commit

Permalink
once_cell less
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein committed Feb 1, 2024
1 parent 1da3f67 commit 3ff7174
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ flate2 = "1.0.25"
futures = "0.3"
futures-util = "0.3"
hex = "0.4.3"
once_cell = "1.19"
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls", "stream"] }
ring = "0.16.20"
semver = { version = "1.0.17", features = ["std", "serde"] }
Expand Down
6 changes: 3 additions & 3 deletions src/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

//! Describes utilities for relaying progress to end-users.
use once_cell::sync::OnceCell;
use std::sync::OnceLock;
use slog::Logger;
use std::borrow::Cow;

Expand All @@ -31,13 +31,13 @@ pub trait Progress {

/// Implements [`Progress`] as a no-op.
pub struct NoProgress {
log: OnceCell<slog::Logger>,
log: OnceLock<slog::Logger>,
}

impl NoProgress {
pub const fn new() -> Self {
Self {
log: OnceCell::new(),
log: OnceLock::new(),
}
}
}
Expand Down

0 comments on commit 3ff7174

Please sign in to comment.