From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ronja.mits.lan by ronja.mits.lan with LMTP id gO0yGQ8NfGaXGQAAxxbTJA (envelope-from ); Wed, 26 Jun 2024 14:43:59 +0200 Received: from proxmox-new.maurer-it.com (unknown [192.168.2.33]) by ronja.mits.lan (Postfix) with ESMTPS id 53476F6463A; Wed, 26 Jun 2024 14:43:59 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 3932E48706; Wed, 26 Jun 2024 14:43:59 +0200 (CEST) Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by proxmox-new.maurer-it.com (Proxmox) with ESMTPS; Wed, 26 Jun 2024 14:43:58 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 4E8FCB5D; Wed, 26 Jun 2024 14:43:55 +0200 (CEST) From: Maximiliano Sandoval To: pbs-devel@lists.proxmox.com Date: Wed, 26 Jun 2024 14:43:38 +0200 Message-Id: <20240626124346.531790-10-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240626124346.531790-1-m.sandoval@proxmox.com> References: <20240626124346.531790-1-m.sandoval@proxmox.com> MIME-Version: 1.0 Subject: [pbs-devel] [PATCH proxmox v2 10/18] shared-memory: remove unneeded generic parameter 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" X-SPAM-LEVEL: Spam detection results: 0 DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods MAILING_LIST_MULTI -2 Multiple indicators imply a widely-seen list manager RAZOR2_CF_RANGE_51_100 2.43 Razor2 gives confidence level above 50% RAZOR2_CHECK 1.729 Listed in Razor2 (http://razor.sf.net/) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Fixes the clippy warning: warning: type parameter `T` goes unused in function definition --> proxmox-shared-memory/tests/raw_shared_mutex.rs:80:19 | 80 | fn create_test_dir(filename: &str) -> Option { | ^^^^^^^^^ help: consider removing the parameter | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters = note: `#[warn(clippy::extra_unused_type_parameters)]` on by default Signed-off-by: Maximiliano Sandoval --- proxmox-shared-memory/tests/raw_shared_mutex.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxmox-shared-memory/tests/raw_shared_mutex.rs b/proxmox-shared-memory/tests/raw_shared_mutex.rs index fff37c0c..7608377e 100644 --- a/proxmox-shared-memory/tests/raw_shared_mutex.rs +++ b/proxmox-shared-memory/tests/raw_shared_mutex.rs @@ -77,7 +77,7 @@ impl Init for MultiMutexData { } } -fn create_test_dir(filename: &str) -> Option { +fn create_test_dir(filename: &str) -> Option { let test_dir: String = env!("CARGO_TARGET_TMPDIR").to_string(); let mut path = PathBuf::from(&test_dir); @@ -100,7 +100,7 @@ fn create_test_dir(filename: &str) -> Option { } #[test] fn test_shared_memory_mutex() -> Result<(), Error> { - let path = match create_test_dir::("data1.shm") { + let path = match create_test_dir("data1.shm") { None => { return Ok(()); // no O_TMPFILE support, can't run test } @@ -138,7 +138,7 @@ fn test_shared_memory_mutex() -> Result<(), Error> { #[test] fn test_shared_memory_multi_mutex() -> Result<(), Error> { - let path = match create_test_dir::("data2.shm") { + let path = match create_test_dir("data2.shm") { None => { return Ok(()); // no O_TMPFILE support, can't run test } -- 2.39.2 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel