Skip to content

Commit 1acf1db

Browse files
authored
Merge pull request #10 from jjs-dev/warnings
Deny rustc warnings
2 parents f69f47a + c797679 commit 1acf1db

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
- uses: actions/checkout@v2
2828
- uses: actions-rs/toolchain@v1.0.6
2929
with:
30-
toolchain: stable
30+
toolchain: nightly
3131
components: clippy
32+
override: true
3233
- name: Run clippy
3334
run: |
34-
rm -rf .cargo
35-
cargo clippy -p minion -p minion-ffi -p minion-cli -- -Dclippy::all
35+
cargo clippy --workspace -- -Dclippy::all -Dwarnings
3636
check-platform-support:
3737
runs-on: ubuntu-latest
3838
steps:

minion-tests/src/tests/simple.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Tests that simple program that does nothing completes successfully.
22
use minion::ChildProcess;
3-
use minion::Dominion;
43

54
pub(crate) struct TOk;
65
impl crate::TestCase for TOk {
@@ -126,7 +125,7 @@ impl crate::TestCase for TOom {
126125
}
127126
}
128127

129-
fn check(&self, cp: &mut dyn ChildProcess, d: minion::DominionRef) {
128+
fn check(&self, _cp: &mut dyn ChildProcess, _d: minion::DominionRef) {
130129
// TODO this test is broken
131130
// super::assert_exit_code(cp, -9);
132131
// assert!(!d.check_cpu_tle().unwrap());
@@ -165,7 +164,7 @@ impl crate::TestCase for TSecurity {
165164
assert!(matches!(err, nix::Error::Sys(nix::errno::Errno::EPERM)));
166165
std::process::exit(24)
167166
}
168-
fn check(&self, cp: &mut dyn minion::ChildProcess, d: minion::DominionRef) {
167+
fn check(&self, cp: &mut dyn minion::ChildProcess, _d: minion::DominionRef) {
169168
super::assert_exit_code(cp, 24);
170169
super::assert_empty(&mut cp.stdout().unwrap());
171170
super::assert_empty(&mut cp.stderr().unwrap());

0 commit comments

Comments
 (0)