Skip to content

Commit

Permalink
Update stable Rust, fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Dec 1, 2024
1 parent cc2ec58 commit 39e7edc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions benches/rect_expand.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/bezpath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ impl Mul<BezPath> for Affine {
}
}

impl<'a> Mul<&'a BezPath> for Affine {
impl Mul<&BezPath> for Affine {
type Output = BezPath;

fn mul(self, other: &BezPath) -> BezPath {
Expand Down Expand Up @@ -713,7 +713,7 @@ impl Mul<BezPath> for TranslateScale {
}
}

impl<'a> Mul<&'a BezPath> for TranslateScale {
impl Mul<&BezPath> for TranslateScale {
type Output = BezPath;

fn mul(self, other: &BezPath) -> BezPath {
Expand Down
2 changes: 1 addition & 1 deletion src/quadspline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct ToQuadBez<'a> {
points: &'a Vec<Point>,
}

impl<'a> Iterator for ToQuadBez<'a> {
impl Iterator for ToQuadBez<'_> {
type Item = QuadBez;

fn next(&mut self) -> Option<Self::Item> {
Expand Down
2 changes: 1 addition & 1 deletion src/stroke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ enum DashState {
FromStash,
}

impl<'a, T: Iterator<Item = PathEl>> Iterator for DashIterator<'a, T> {
impl<T: Iterator<Item = PathEl>> Iterator for DashIterator<'_, T> {
type Item = PathEl;

fn next(&mut self) -> Option<PathEl> {
Expand Down
2 changes: 1 addition & 1 deletion src/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ struct SvgLexer<'a> {
pub last_pt: Point,
}

impl<'a> SvgLexer<'a> {
impl SvgLexer<'_> {
fn new(data: &str) -> SvgLexer {
SvgLexer {
data,
Expand Down

0 comments on commit 39e7edc

Please sign in to comment.