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

Testing if clippy-check Action working for PRs from forks #3

Open
wants to merge 4 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/clippy_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 5 additions & 1 deletion example/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -38,4 +41,5 @@ mod tests {
fn test_pid_is_working() {
assert_eq!(pid() as u32, process::id());
}
}

}