Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 2, 2024
1 parent ab1e195 commit f088309
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/anstream/src/adapter/strip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl<'s> StrippedStr<'s> {
}
}

impl<'s> std::fmt::Display for StrippedStr<'s> {
impl std::fmt::Display for StrippedStr<'_> {
/// **Note:** this does *not* exhaust the [`Iterator`]
#[inline]
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Expand Down Expand Up @@ -344,7 +344,7 @@ impl Utf8Parser {

struct VtUtf8Receiver<'a>(&'a mut bool);

impl<'a> utf8parse::Receiver for VtUtf8Receiver<'a> {
impl utf8parse::Receiver for VtUtf8Receiver<'_> {
fn codepoint(&mut self, _: char) {
*self.0 = true;
}
Expand Down
2 changes: 1 addition & 1 deletion crates/anstream/src/adapter/wincon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct WinconBytesIter<'s> {
capture: &'s mut WinconCapture,
}

impl<'s> Iterator for WinconBytesIter<'s> {
impl Iterator for WinconBytesIter<'_> {
type Item = (anstyle::Style, String);

#[inline]
Expand Down
2 changes: 1 addition & 1 deletion crates/anstyle-parse/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl CharAccumulator for Utf8Parser {
struct VtUtf8Receiver<'a>(&'a mut Option<char>);

#[cfg(feature = "utf8")]
impl<'a> utf8::Receiver for VtUtf8Receiver<'a> {
impl utf8::Receiver for VtUtf8Receiver<'_> {
fn codepoint(&mut self, c: char) {
*self.0 = Some(c);
}
Expand Down

0 comments on commit f088309

Please sign in to comment.