diff --git a/.github/workflows/clippy_check.yml b/.github/workflows/clippy_check.yml index 37b2f43..68a35d8 100644 --- a/.github/workflows/clippy_check.yml +++ b/.github/workflows/clippy_check.yml @@ -14,7 +14,7 @@ jobs: toolchain: ${{ steps.component.outputs.toolchain }} override: true - run: rustup component add clippy - - uses: actions-rs/clippy-check@v1 + - uses: actions-rs/clippy-check@permissions-fallback with: token: ${{ secrets.GITHUB_TOKEN }} args: --all-features diff --git a/example/src/lib.rs b/example/src/lib.rs index 488b58a..400babe 100644 --- a/example/src/lib.rs +++ b/example/src/lib.rs @@ -6,6 +6,9 @@ pub type Pid = example_sys::windows::DWORD; #[cfg(unix)] pub fn pid() -> Pid { + let a: u64 = 0; + assert!(a < 0); + unsafe { example_sys::unix::getpid() } @@ -38,4 +41,5 @@ mod tests { fn test_pid_is_working() { assert_eq!(pid() as u32, process::id()); } -} \ No newline at end of file + +}