diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7a7799c..2a70ce93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ env: # version like 1.70. Note that we only specify MAJOR.MINOR and not PATCH so that bugfixes still # come automatically. If the version specified here is no longer the latest stable version, # then please feel free to submit a PR that adjusts it along with the potential clippy fixes. - RUST_STABLE_VER: "1.82" # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7 + RUST_STABLE_VER: "1.83" # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7 # The purpose of checking with the minimum supported Rust toolchain is to detect its staleness. # If the compilation fails, then the version specified here needs to be bumped up to reality. # Be sure to also update the rust-version property in the workspace Cargo.toml file, diff --git a/benches/rect_expand.rs b/benches/rect_expand.rs index 9909b490..abba3b8c 100644 --- a/benches/rect_expand.rs +++ b/benches/rect_expand.rs @@ -1,6 +1,8 @@ // Copyright 2020 the Kurbo Authors // SPDX-License-Identifier: Apache-2.0 OR MIT +//! Benchmarks of rect expansion. + #![cfg(nightly)] #![feature(test)] extern crate test; diff --git a/src/bezpath.rs b/src/bezpath.rs index e9462ffe..c5de04cd 100644 --- a/src/bezpath.rs +++ b/src/bezpath.rs @@ -671,7 +671,7 @@ impl Mul for Affine { } } -impl<'a> Mul<&'a BezPath> for Affine { +impl Mul<&BezPath> for Affine { type Output = BezPath; fn mul(self, other: &BezPath) -> BezPath { @@ -713,7 +713,7 @@ impl Mul for TranslateScale { } } -impl<'a> Mul<&'a BezPath> for TranslateScale { +impl Mul<&BezPath> for TranslateScale { type Output = BezPath; fn mul(self, other: &BezPath) -> BezPath { diff --git a/src/quadspline.rs b/src/quadspline.rs index b7904ad7..3c6cc4ac 100644 --- a/src/quadspline.rs +++ b/src/quadspline.rs @@ -41,7 +41,7 @@ struct ToQuadBez<'a> { points: &'a Vec, } -impl<'a> Iterator for ToQuadBez<'a> { +impl Iterator for ToQuadBez<'_> { type Item = QuadBez; fn next(&mut self) -> Option { diff --git a/src/stroke.rs b/src/stroke.rs index 40015f39..803142cb 100644 --- a/src/stroke.rs +++ b/src/stroke.rs @@ -564,7 +564,7 @@ enum DashState { FromStash, } -impl<'a, T: Iterator> Iterator for DashIterator<'a, T> { +impl> Iterator for DashIterator<'_, T> { type Item = PathEl; fn next(&mut self) -> Option { diff --git a/src/svg.rs b/src/svg.rs index 0a22087a..d392211c 100644 --- a/src/svg.rs +++ b/src/svg.rs @@ -282,7 +282,7 @@ struct SvgLexer<'a> { pub last_pt: Point, } -impl<'a> SvgLexer<'a> { +impl SvgLexer<'_> { fn new(data: &str) -> SvgLexer { SvgLexer { data,