Skip to content
Myr

Add clippy using latest rust version to CI

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Thayne McCombs · committed by Thayne McCombs · parent 3cd73d7 · Browse files · 2 files+13 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Fixes: #1511

Diff stats

2 files+13 added−1 removed

  • tests:+3 added−1 removed
  • other:+10 added−0 removed

2 files+13 added−1 removed

modified:.github/workflows/CICD.yml+10 added
42 unmodified lines
43 components: rustfmt44 - uses: actions/checkout@v445 - run: cargo fmt -- --check4647 lint_check:48 name: Ensure 'cargo clippy' has no warnings49 runs-on: ubuntu-latest50 steps:51 - uses: dtolnay/rust-toolchain@stable52 with:53 components: clippy54 - uses: actions/checkout@v455 - run: cargo clippy --all-targets --all-features -- -Dwarnings5657 min_version:58 name: Minimum supported rust version59 runs-on: ubuntu-20.0460 needs: crate_metadata
303 unmodified lines
modified:tests/tests.rs+3 added-1 removed
1309 unmodified lines
13101311 let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);13121313 fs::OpenOptions::new()1314 .create(true)1314 .create_new(true)1315 .truncate(true)1316 .write(true)1317 .mode(0o777)1318 .open(te.test_root().join("executable-file.sh"))1319 .unwrap();13201321 fs::OpenOptions::new()1322 .create(true)1323 .truncate(true)1324 .write(true)1325 .mode(0o645)1326 .open(te.test_root().join("not-user-executable-file.sh"))1327 .unwrap();
1267 unmodified lines