Skip to content

Commit

Permalink
userpass module optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
wa5i committed Feb 28, 2024
1 parent 39bf749 commit 3c817fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/credential/userpass/path_users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl UserPassBackendInner {
}

pub fn list_user(&self, _backend: &dyn Backend, req: &mut Request) -> Result<Option<Response>, RvError> {
let users = req.storage_list(format!("user/").as_str())?;
let users = req.storage_list("user/")?;
let resp = Response::list_response(&users);
Ok(Some(resp))
}
Expand Down

0 comments on commit 3c817fb

Please sign in to comment.