Skip to content

Commit

Permalink
elide explicit lifetimes to make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
hkBst committed Jan 3, 2025
1 parent 17e0264 commit ccd1575
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion data-url/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl<'a> DataUrl<'a> {
/// The URL’s fragment identifier (after `#`)
pub struct FragmentIdentifier<'a>(&'a str);

impl<'a> FragmentIdentifier<'a> {
impl FragmentIdentifier<'_> {
/// Like in a parsed URL
pub fn to_percent_encoded(&self) -> String {
let mut string = String::new();
Expand Down
4 changes: 2 additions & 2 deletions form_urlencoded/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub struct ParseIntoOwned<'a> {
inner: Parse<'a>,
}

impl<'a> Iterator for ParseIntoOwned<'a> {
impl Iterator for ParseIntoOwned<'_> {
type Item = (String, String);

fn next(&mut self) -> Option<Self::Item> {
Expand Down Expand Up @@ -195,7 +195,7 @@ impl Target for String {
type Finished = Self;
}

impl<'a> Target for &'a mut String {
impl Target for &mut String {
fn as_mut_string(&mut self) -> &mut String {
self
}
Expand Down
4 changes: 2 additions & 2 deletions percent_encoding/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl<'a> Iterator for PercentEncode<'a> {
}
}

impl<'a> fmt::Display for PercentEncode<'a> {
impl fmt::Display for PercentEncode<'_> {
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
for c in (*self).clone() {
formatter.write_str(c)?
Expand Down Expand Up @@ -254,7 +254,7 @@ fn after_percent_sign(iter: &mut slice::Iter<'_, u8>) -> Option<u8> {
Some(h as u8 * 0x10 + l as u8)
}

impl<'a> Iterator for PercentDecode<'a> {
impl Iterator for PercentDecode<'_> {
type Item = u8;

fn next(&mut self) -> Option<u8> {
Expand Down

0 comments on commit ccd1575

Please sign in to comment.