From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 55FE61FF16C for ; Wed, 14 Aug 2024 11:19:08 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 068DB1A70C; Wed, 14 Aug 2024 11:19:22 +0200 (CEST) From: Maximiliano Sandoval To: pbs-devel@lists.proxmox.com Date: Wed, 14 Aug 2024 11:18:42 +0200 Message-Id: <20240814091842.216993-15-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240814091842.216993-1-m.sandoval@proxmox.com> References: <20240814091842.216993-1-m.sandoval@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.107 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pbs-devel] [PATCH proxmox 15/15] rest-server: remove use of once_cell X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" Signed-off-by: Maximiliano Sandoval --- Cargo.toml | 1 - proxmox-rest-server/Cargo.toml | 1 - proxmox-rest-server/src/worker_task.rs | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6360db1f..2b012974 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/proxmox-rest-server/Cargo.toml b/proxmox-rest-server/Cargo.toml index 280e035a..45751d7e 100644 --- a/proxmox-rest-server/Cargo.toml +++ b/proxmox-rest-server/Cargo.toml @@ -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 diff --git a/proxmox-rest-server/src/worker_task.rs b/proxmox-rest-server/src/worker_task.rs index 228abb7f..6e76c2ca 100644 --- a/proxmox-rest-server/src/worker_task.rs +++ b/proxmox-rest-server/src/worker_task.rs @@ -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 = OnceCell::new(); +static WORKER_TASK_SETUP: OnceLock = OnceLock::new(); fn worker_task_setup() -> Result<&'static WorkerTaskSetup, Error> { WORKER_TASK_SETUP -- 2.39.2 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel