From 38e79cf3fca17ef9458e9f105682837ec193846b Mon Sep 17 00:00:00 2001 From: svartalf Date: Thu, 3 Oct 2019 13:35:24 +0300 Subject: [PATCH 1/2] Testing if clippy-check Action working for PRs from forks --- example/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/example/src/lib.rs b/example/src/lib.rs index 6940507..5bef0ad 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() } @@ -29,4 +32,4 @@ mod tests { assert_eq!(pid() as u32, process::id()); } -} \ No newline at end of file +} From d9025fd222bc8682be39dd7375ea92eb301c4153 Mon Sep 17 00:00:00 2001 From: svartalf Date: Fri, 4 Oct 2019 19:07:30 +0300 Subject: [PATCH 2/2] testing permissions fallback --- .github/workflows/clippy_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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