Skip to content

Commit bc47532

Browse files
committed
Fix Clippy lints
1 parent e6b4ecb commit bc47532

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

crates/oxidize-chat/src/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl<'a> Context<'a> {
282282
}
283283
}
284284

285-
impl<'a> Iterator for Context<'a> {
285+
impl Iterator for Context<'_> {
286286
type Item = String;
287287

288288
#[inline]

crates/oxidize-chat/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ impl<'a> Urls<'a> {
1111
}
1212
}
1313

14-
impl<'a> Iterator for Urls<'a> {
14+
impl Iterator for Urls<'_> {
1515
type Item = url::Url;
1616

1717
fn next(&mut self) -> Option<Self::Item> {

crates/oxidize-common/src/words.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub struct Trimmed<'a> {
169169
string: &'a str,
170170
}
171171

172-
impl<'a> Trimmed<'a> {
172+
impl Trimmed<'_> {
173173
/// Split the commandline.
174174
fn new(string: &str) -> Trimmed<'_> {
175175
Trimmed {

crates/oxidize-db/src/matcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ pub enum Captures<'a> {
264264
Regex { captures: regex::Captures<'a> },
265265
}
266266

267-
impl<'a> Captures<'a> {
267+
impl Captures<'_> {
268268
/// Get the number of captures.
269269
fn len(&self) -> usize {
270270
match self {

crates/oxidize-emotes/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ pub(crate) struct Words<'a> {
822822
n: usize,
823823
}
824824

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

0 commit comments

Comments
 (0)