You've already forked rust-users
mirror of
https://github.com/uutils/rust-users.git
synced 2026-06-10 15:48:37 -07:00
Result -> IOResult
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ impl Drop for SwitchUserGuard {
|
||||
/// }
|
||||
/// // back to the old values
|
||||
/// ```
|
||||
pub fn switch_user_group(uid: uid_t, gid: gid_t) -> Result<SwitchUserGuard, IOError> {
|
||||
pub fn switch_user_group(uid: uid_t, gid: gid_t) -> IOResult<SwitchUserGuard> {
|
||||
let current_state = SwitchUserGuard {
|
||||
uid: get_effective_uid(),
|
||||
gid: get_effective_gid(),
|
||||
|
||||
Reference in New Issue
Block a user