File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ jobs:
27
27
- uses : actions/checkout@v2
28
28
- uses : actions-rs/toolchain@v1.0.6
29
29
with :
30
- toolchain : stable
30
+ toolchain : nightly
31
31
components : clippy
32
+ override : true
32
33
- name : Run clippy
33
34
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
36
36
check-platform-support :
37
37
runs-on : ubuntu-latest
38
38
steps :
Original file line number Diff line number Diff line change 1
1
//! Tests that simple program that does nothing completes successfully.
2
2
use minion:: ChildProcess ;
3
- use minion:: Dominion ;
4
3
5
4
pub ( crate ) struct TOk ;
6
5
impl crate :: TestCase for TOk {
@@ -126,7 +125,7 @@ impl crate::TestCase for TOom {
126
125
}
127
126
}
128
127
129
- fn check ( & self , cp : & mut dyn ChildProcess , d : minion:: DominionRef ) {
128
+ fn check ( & self , _cp : & mut dyn ChildProcess , _d : minion:: DominionRef ) {
130
129
// TODO this test is broken
131
130
// super::assert_exit_code(cp, -9);
132
131
// assert!(!d.check_cpu_tle().unwrap());
@@ -165,7 +164,7 @@ impl crate::TestCase for TSecurity {
165
164
assert ! ( matches!( err, nix:: Error :: Sys ( nix:: errno:: Errno :: EPERM ) ) ) ;
166
165
std:: process:: exit ( 24 )
167
166
}
168
- fn check ( & self , cp : & mut dyn minion:: ChildProcess , d : minion:: DominionRef ) {
167
+ fn check ( & self , cp : & mut dyn minion:: ChildProcess , _d : minion:: DominionRef ) {
169
168
super :: assert_exit_code ( cp, 24 ) ;
170
169
super :: assert_empty ( & mut cp. stdout ( ) . unwrap ( ) ) ;
171
170
super :: assert_empty ( & mut cp. stderr ( ) . unwrap ( ) ) ;
You can’t perform that action at this time.
0 commit comments