rest-server: remove use of once_cell
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
901f2fb1bb
commit
21a39b3cda
@ -90,7 +90,6 @@ log = "0.4.17"
|
||||
mail-parser = "0.8.2"
|
||||
native-tls = "0.2"
|
||||
nix = "0.26.1"
|
||||
once_cell = "1.3.1"
|
||||
openssl = "0.10"
|
||||
pam-sys = "0.5"
|
||||
percent-encoding = "2.1"
|
||||
|
@ -23,7 +23,6 @@ hyper = { workspace = true, features = [ "full" ] }
|
||||
libc.workspace = true
|
||||
log.workspace = true
|
||||
nix.workspace = true
|
||||
once_cell.workspace = true
|
||||
openssl.workspace = true
|
||||
percent-encoding.workspace = true
|
||||
regex.workspace = true
|
||||
|
@ -10,7 +10,6 @@ use std::time::{Duration, SystemTime};
|
||||
use anyhow::{bail, format_err, Error};
|
||||
use futures::*;
|
||||
use nix::fcntl::OFlag;
|
||||
use once_cell::sync::OnceCell;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::{json, Value};
|
||||
use tokio::signal::unix::SignalKind;
|
||||
@ -99,7 +98,7 @@ struct WorkerTaskSetup {
|
||||
task_archive_fn: PathBuf,
|
||||
}
|
||||
|
||||
static WORKER_TASK_SETUP: OnceCell<WorkerTaskSetup> = OnceCell::new();
|
||||
static WORKER_TASK_SETUP: OnceLock<WorkerTaskSetup> = OnceLock::new();
|
||||
|
||||
fn worker_task_setup() -> Result<&'static WorkerTaskSetup, Error> {
|
||||
WORKER_TASK_SETUP
|
||||
|
Loading…
Reference in New Issue
Block a user