Skip to content

Commit

Permalink
Fix new/updated clippy warnings in 1.83
Browse files Browse the repository at this point in the history
  • Loading branch information
ictrobot committed Dec 1, 2024
1 parent e1d04ee commit 37ea318
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2021"
license = "MIT"
publish = false
repository = "https://github.com/ictrobot/aoc-rs"
rust-version = "1.82.0"
rust-version = "1.83.0"

[workspace.lints.clippy]
pedantic = { level = "warn", priority = -1 }
Expand Down
2 changes: 1 addition & 1 deletion crates/aoc/src/cli/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ enum ArgumentValue<'a> {
None,
}

impl<'a> ArgumentValue<'a> {
impl ArgumentValue<'_> {
fn required(self) -> Result<String, Box<dyn Error>> {
match self {
ArgumentValue::Provided(value) => Ok(value),
Expand Down
2 changes: 1 addition & 1 deletion crates/utils/src/parser/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ pub trait Parser: Sized {

// Workaround to allow using methods which consume a parser in methods which take references.
struct ParserRef<'a, P>(&'a P);
impl<'a, P: Parser> Parser for ParserRef<'a, P> {
impl<P: Parser> Parser for ParserRef<'_, P> {
type Output<'i> = P::Output<'i>;
type Then<T: Parser> = Unimplemented;

Expand Down
2 changes: 1 addition & 1 deletion crates/utils/src/parser/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ impl<'a, P: Parser> Iterator for ParserIterator<'a, P> {
}
}

impl<'a, P: Parser> FusedIterator for ParserIterator<'a, P> {}
impl<P: Parser> FusedIterator for ParserIterator<'_, P> {}

0 comments on commit 37ea318

Please sign in to comment.