diff options
Diffstat (limited to 'common/tedge_users/src/unix.rs')
-rw-r--r-- | common/tedge_users/src/unix.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/tedge_users/src/unix.rs b/common/tedge_users/src/unix.rs index aef224cf..a37e8784 100644 --- a/common/tedge_users/src/unix.rs +++ b/common/tedge_users/src/unix.rs @@ -1,3 +1,4 @@ +use std::fmt; use std::rc::Rc; use std::sync::Mutex; @@ -21,6 +22,12 @@ pub struct UserManager { inner: Rc<Mutex<InnerUserManager>>, } +impl fmt::Debug for UserManager { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("UserManager").finish() + } +} + struct InnerUserManager { users: Vec<String>, guard: Option<users::switch::SwitchUserGuard>, |