Skip to content

Commit a3352c1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5780773 commit a3352c1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

fuzz/uufuzz/src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ where
7272
{
7373
// Duplicate the stdout and stderr file descriptors
7474
let stdout_fd = match dup(std::io::stdout()) {
75-
Ok(fd) => fd.into_raw_fd(),
75+
Ok(fd) => fd.into_raw_fd(),
7676
Err(_) => {
7777
return CommandResult {
7878
stdout: "".to_string(),
@@ -81,9 +81,9 @@ where
8181
};
8282
}
8383
};
84-
84+
8585
let stderr_fd = match dup(std::io::stderr()) {
86-
Ok(fd) => fd.into_raw_fd(),
86+
Ok(fd) => fd.into_raw_fd(),
8787
Err(_) => {
8888
unsafe { close(stdout_fd) };
8989
return CommandResult {
@@ -93,7 +93,7 @@ where
9393
};
9494
}
9595
};
96-
96+
9797
let original_stdout_fd = stdout_fd;
9898
let original_stderr_fd = stderr_fd;
9999

@@ -152,7 +152,7 @@ where
152152
};
153153

154154
let original_stdin_fd = stdin_fd;
155-
155+
156156
if unsafe { dup2(input_file.as_raw_fd(), STDIN_FILENO) } == -1 {
157157
unsafe {
158158
close(original_stdout_fd);
@@ -165,9 +165,9 @@ where
165165
exit_code: -1,
166166
};
167167
}
168-
168+
169169
Some(original_stdin_fd)
170-
170+
171171
} else {
172172
None
173173
};

0 commit comments

Comments
 (0)