From 8cfb4a0858969e7825b9365fdb6adb2be8d6a71b Mon Sep 17 00:00:00 2001 From: Ben S Date: Wed, 27 Jan 2016 19:41:17 +0000 Subject: [PATCH] At least parse the switch_user_group test It won't run, but it can at least be analysed to see if it works! --- src/switch.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch.rs b/src/switch.rs index 5414026..c99a2c1 100644 --- a/src/switch.rs +++ b/src/switch.rs @@ -87,7 +87,9 @@ impl Drop for SwitchUserGuard { /// Safely switch user and group for the current scope. /// Requires root access. /// -/// ```ignore +/// ```no_run +/// use users::switch::switch_user_group; +/// /// { /// let _guard = switch_user_group(1001, 1001); /// // current and effective user and group ids are 1001