[pbs-devel] [PATCH backup 3/6] api: remove use of unnecessary pub(self)

Maximiliano Sandoval m.sandoval at proxmox.com
Wed Jun 26 11:48:19 CEST 2024


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 at 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





More information about the pbs-devel mailing list