summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinitard <solo@softwareag.com>2022-06-15 09:53:08 +0100
committerinitard <solo@softwareag.com>2022-06-16 15:18:10 +0100
commita73df5a4722db6982458e168e05757fe01f3dccf (patch)
treef07b4cc1a6d0a8b3a20b5c09a7888d8186bc0c41
parent278923ae68d5fd511eafdb024d86597a38b1abb8 (diff)
tedge_users fixing clippy warnings #825
Signed-off-by: initard <solo@softwareag.com>
-rw-r--r--crates/common/tedge_users/src/unix.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/common/tedge_users/src/unix.rs b/crates/common/tedge_users/src/unix.rs
index a37e8784..79a787fd 100644
--- a/crates/common/tedge_users/src/unix.rs
+++ b/crates/common/tedge_users/src/unix.rs
@@ -33,6 +33,9 @@ struct InnerUserManager {
guard: Option<users::switch::SwitchUserGuard>,
}
+// this clippy warning is misleading because `UserManager` should only
+// be crated once. There should be no "default" implemented for it
+#[allow(clippy::new_without_default)]
impl UserManager {
/// Create a `UserManager`.
///