Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

New clippy test #16

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Security audit

on:
schedule:
- cron: '0 0 0 * *'
- cron: '0 0 1 * *'
push:
paths:
- '**/Cargo.toml'
Expand Down
5 changes: 3 additions & 2 deletions example/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -38,4 +39,4 @@ mod tests {
fn test_pid_is_working() {
assert_eq!(pid() as u32, process::id());
}
}
}