Name function after command: list_local_users

This commit is contained in:
Torsten Flammiger 2022-01-16 21:22:57 +01:00
parent 3e79d15495
commit 50430cf4ab
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ impl Admin {
match event {
AdminCommand::ListLocalUsers => {
match guard.users.get_local_users() {
match guard.users.list_local_users() {
Ok(users) => {
let mut msg: String = format!("Found {} local user account(s):\n", users.len());
msg += &users.join("\n");

View file

@ -127,7 +127,7 @@ impl Users {
///
/// A user account is considered `local` if the length of it's password is greater then zero.
#[tracing::instrument(skip(self))]
pub fn get_local_users(&self) -> Result<Vec<String>> {
pub fn list_local_users(&self) -> Result<Vec<String>> {
let users: Vec<String> = self
.userid_password
.iter()