From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH backup 3/6] api: remove use of unnecessary pub(self)
Date: Wed, 26 Jun 2024 11:48:19 +0200 [thread overview]
Message-ID: <20240626094822.288287-3-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20240626094822.288287-1-m.sandoval@proxmox.com>
Fixes the clippy warning:
warning: unnecessary `pub(self)`
--> src/api2/access/mod.rs:35:1
|
35 | pub(self) async fn user_update_auth<S: AsRef<str>>(
| ^^^^^^^^^ help: remove it
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pub_self
= note: `#[warn(clippy::needless_pub_self)]` on by default
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
src/api2/access/mod.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api2/access/mod.rs b/src/api2/access/mod.rs
index 15509fd9..a60f0f86 100644
--- a/src/api2/access/mod.rs
+++ b/src/api2/access/mod.rs
@@ -32,7 +32,7 @@ pub mod user;
/// This means that user admins need to type in their own password while editing a user, and
/// regular users, which can only change their own settings (checked at the API level), can change
/// their own settings using their own password.
-pub(self) async fn user_update_auth<S: AsRef<str>>(
+async fn user_update_auth<S: AsRef<str>>(
rpcenv: &mut dyn RpcEnvironment,
userid: &Userid,
password: Option<S>,
--
2.39.2
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next prev parent reply other threads:[~2024-06-26 9:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 9:48 [pbs-devel] [PATCH backup 1/6] replace get(key).is_some() with contains_key() Maximiliano Sandoval
2024-06-26 9:48 ` [pbs-devel] [PATCH backup 2/6] replace get(key).is_none() with !contains_key() Maximiliano Sandoval
2024-06-26 9:48 ` Maximiliano Sandoval [this message]
2024-06-26 9:48 ` [pbs-devel] [PATCH backup 4/6] tools: write multiplication by 01 succinctly Maximiliano Sandoval
2024-06-26 9:48 ` [pbs-devel] [PATCH backup 5/6] chunk_store: do not explicitly write implied trait Maximiliano Sandoval
2024-06-26 10:01 ` Gabriel Goller
2024-06-26 9:48 ` [pbs-devel] [PATCH backup 6/6] tools: add missing cfg(test) macro Maximiliano Sandoval
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240626094822.288287-3-m.sandoval@proxmox.com \
--to=m.sandoval@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox