Skip to content

Commit

Permalink
windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Aug 21, 2024
1 parent 176019f commit 406ef31
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/test-runner/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ impl From<InnerError> for Error {
}

#[cfg(target_os = "windows")]
pub fn as_unprivileged_user<T>(
unpriv_user: &str,
func: impl FnOnce() -> T,
) -> Result<T, nix::Error> {
pub fn as_unprivileged_user<T>(unpriv_user: &str, func: impl FnOnce() -> T) -> Result<T, Error> {
// NOTE: no-op
let _ = unpriv_user;
Ok(func())
Expand Down

0 comments on commit 406ef31

Please sign in to comment.