You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: bump rust-toolchain pin to 1.95.0 and apply clippy --fix suggestions
The current 1.81.0 pin can no longer resolve the checked-in Cargo.lock:
transitive dependencies (home v0.5.12 among others) now require
edition2024 and rustc >= 1.88, neither of which 1.81 supports.
1.95.0 is current stable at time of writing, and successfully resolves
and compiles the full workspace (crate, compiler, codegen, examples).
Newer clippy then flags a handful of stylistic issues that trip
`-D warnings` in `make check-all`:
- io::Error::new(ErrorKind::Other, ...) -> io::Error::other(...)
- .map_or(false, ...) -> .is_some_and(...)
- unnecessary explicit lifetimes (foo<'a> -> foo<'_>)
- .ok_or_else(|| lit) -> .ok_or(lit)
- redundant .into_iter() on an IntoIterator argument
- a few match-one-pattern reductions to `?` / if-let-guard
These are all applied via `cargo clippy --fix` and then `cargo fmt` and
reviewed; no behavior change. The one manually added line is a
`#![allow(clippy::zombie_processes)]` at the top of tests/run-examples.rs
where the lint is a false positive (the branching cleanup does wait on
each spawned child, clippy just can't see it through the control flow).
Locally verified: `make check-all`, `make`, `make -C compiler`,
`make -C ttrpc-codegen`, `make -C example build-examples` all pass.
0 commit comments