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