CI: Surface Rust warnings on PRs that touch any Rust code

Rust PRs will have a failed CI step if they trigger any warnings.
This helps us stay on top of warnings from new Rust releases and
also ones we accidentally write.

Fix a typo for demo, since this only runs when Rust files are changed.
This commit is contained in:
Alan Wu 2025-08-11 16:44:22 -04:00
parent 0070c26aec
commit 8b1afbc6ed
2 changed files with 54 additions and 1 deletions

View file

@ -343,7 +343,7 @@ impl<'a> std::fmt::Display for ConstPrinter<'a> {
///
/// Because this is extra state external to any pointer being printed, a
/// printing adapter struct that wraps the pointer along with this map is
/// required to make use of this effectly. The [`std::fmt::Display`]
/// required to make use of this effectively. The [`std::fmt::Display`]
/// implementation on the adapter struct can then be reused to implement
/// `Display` on the inner type with a default [`PtrPrintMap`], which
/// does not perform any mapping.