Skip to content

Commit

Permalink
Fix Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Dec 18, 2024
1 parent e6b4ecb commit bc47532
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/oxidize-chat/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ impl<'a> Context<'a> {
}
}

impl<'a> Iterator for Context<'a> {
impl Iterator for Context<'_> {
type Item = String;

#[inline]
Expand Down
2 changes: 1 addition & 1 deletion crates/oxidize-chat/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ impl<'a> Urls<'a> {
}
}

impl<'a> Iterator for Urls<'a> {
impl Iterator for Urls<'_> {
type Item = url::Url;

fn next(&mut self) -> Option<Self::Item> {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxidize-common/src/words.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pub struct Trimmed<'a> {
string: &'a str,
}

impl<'a> Trimmed<'a> {
impl Trimmed<'_> {
/// Split the commandline.
fn new(string: &str) -> Trimmed<'_> {
Trimmed {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxidize-db/src/matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ pub enum Captures<'a> {
Regex { captures: regex::Captures<'a> },
}

impl<'a> Captures<'a> {
impl Captures<'_> {
/// Get the number of captures.
fn len(&self) -> usize {
match self {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxidize-emotes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ pub(crate) struct Words<'a> {
n: usize,
}

impl<'a> Words<'a> {
impl Words<'_> {
/// Split a string into words.
pub(crate) fn new(string: &str) -> Words<'_> {
Words { string, n: 0 }
Expand Down

0 comments on commit bc47532

Please sign in to comment.