Result -> IOResult

This commit is contained in:
Ben S
2016-01-27 19:44:41 +00:00
parent 5ac78b90f3
commit 361bf319eb
+1 -1
View File
@@ -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(),