diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 28b5a01..b281b6b 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -2,7 +2,7 @@ name: Security audit on: schedule: - - cron: '0 0 0 * *' + - cron: '0 0 1 * *' push: paths: - '**/Cargo.toml' diff --git a/example/src/lib.rs b/example/src/lib.rs index 488b58a..4c81c95 100644 --- a/example/src/lib.rs +++ b/example/src/lib.rs @@ -18,9 +18,10 @@ pub fn pid() -> Pid { } } -// Specifically dumb function, just to trigger clippy +// Extremely dumb function, just to trigger clippy as much as possible pub fn pid_is_valid(pid: Pid) -> bool { let pid = pid as u32; + println!("{}", pid < 0); if pid < 0 { return false; } else { @@ -38,4 +39,4 @@ mod tests { fn test_pid_is_working() { assert_eq!(pid() as u32, process::id()); } -} \ No newline at end of file +}