Skip to content

Fix macOS tests and bump MSRV #172

Fix macOS tests and bump MSRV

Fix macOS tests and bump MSRV #172

Triggered via push November 13, 2023 14:38
Status Failure
Total duration 50s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 10 warnings
mismatched types: src/unix.rs#L352
error[E0308]: mismatched types --> src/unix.rs:352:21 | 345 | / match policy { 346 | | #[cfg(any(target_os = "linux", target_os = "android"))] 347 | | ThreadSchedulePolicy::Normal(NormalThreadSchedulePolicy::Idle) => Ok(0), 348 | | ThreadSchedulePolicy::Normal(_) => { ... | 352 | | Ok(NICENESS_MIN as libc::c_int) | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<i32, _>` ... | 381 | | } 382 | | } | |_________- expected this to be `()` | = note: expected unit type `()` found enum `std::result::Result<i32, _>` help: you might have meant to return this value | 352 | return Ok(NICENESS_MIN as libc::c_int); | ++++++ +
unreachable expression: src/unix.rs#L313
error: unreachable expression --> src/unix.rs:313:17 | 309 | return Ok(NICENESS_MAX as libc::c_int); | -------------------------------------- any code following this expression is unreachable ... 313 | / if cfg!(any(target_os = "macos", target_os = "ios")) { 314 | | let max_priority = unsafe { libc::sched_get_priority_max(policy.to_posix()) }; 315 | | if max_priority < 0 { 316 | | Err(Error::OS(errno())) ... | 328 | | return Err(Error::Priority("This OS is unsupported.")); 329 | | } | |_________________^ unreachable expression | note: the lint level is defined here --> src/lib.rs:146:9 | 146 | #![deny(warnings)] | ^^^^^^^^ = note: `#[deny(unreachable_code)]` implied by `#[deny(warnings)]`
Clippy
Clippy had exited with the 101 exit code
Format
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions/cache@v2, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/