From 338b4949e41e5066aefa680936c8c2832e0816c4 Mon Sep 17 00:00:00 2001 From: Dietrich Date: Sat, 24 Oct 2020 13:50:33 +0200 Subject: [PATCH] add must uses --- src/user/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/user/mod.rs b/src/user/mod.rs index 8abcd79..3ce5607 100644 --- a/src/user/mod.rs +++ b/src/user/mod.rs @@ -123,22 +123,27 @@ impl crate::api::UserRead for User { Some(&self.shell_path.shell) } + #[must_use] fn get_full_name(&self) -> Option<&str> { self.gecos.get_full_name() } + #[must_use] fn get_room(&self) -> Option<&str> { self.gecos.get_room() } + #[must_use] fn get_phone_work(&self) -> Option<&str> { self.gecos.get_phone_work() } + #[must_use] fn get_phone_home(&self) -> Option<&str> { self.gecos.get_phone_home() } + #[must_use] fn get_other(&self) -> Option<&Vec> { self.gecos.get_other() }