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 8efc81f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 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 8efc81f

Please sign in to comment.