Skip to content

Commit dd43e1e

Browse files
Fix clippy::semicolon_if_nothing_returned warnings (#224)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Brooooooklyn <3468483+Brooooooklyn@users.noreply.github.com>
1 parent 8de64bd commit dd43e1e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/fspy/src/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl Command {
7171
OsString::from_vec(value.unwrap_or_default().into()),
7272
)
7373
})
74-
.collect()
74+
.collect();
7575
}
7676

7777
pub fn env_remove<K: AsRef<OsStr>>(&mut self, key: K) -> &mut Command {

crates/fspy_preload_unix/src/interceptions/spawn/exec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn handle_exec(
3636
let result = unsafe {
3737
client.handle_exec(config, RawExec { prog, argv, envp }, |raw_command, pre_exec| {
3838
if let Some(pre_exec) = pre_exec {
39-
pre_exec.run()?
39+
pre_exec.run()?;
4040
};
4141
Ok(execve::original()(raw_command.prog, raw_command.argv, raw_command.envp))
4242
})

0 commit comments

Comments
 (0)