Skip to content

Commit c09d85a

Browse files
committed
cargo clippy
1 parent f9d1d85 commit c09d85a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/html/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pub fn try_percent_decode(input: &str) -> Cow<'_, str> {
162162
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd)]
163163
pub struct Href<'a>(pub &'a str);
164164

165-
impl<'a> Href<'a> {
165+
impl Href<'_> {
166166
pub fn without_anchor(&self) -> Href<'_> {
167167
let mut s = self.0;
168168

@@ -174,7 +174,7 @@ impl<'a> Href<'a> {
174174
}
175175
}
176176

177-
impl<'a> fmt::Display for Href<'a> {
177+
impl fmt::Display for Href<'_> {
178178
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
179179
self.0.fmt(fmt)
180180
}
@@ -198,7 +198,7 @@ pub enum Link<'a, P> {
198198
Defines(DefinedLink<'a>),
199199
}
200200

201-
impl<'a, P> Link<'a, P> {
201+
impl<P> Link<'_, P> {
202202
pub fn into_paragraph(self) -> Option<P> {
203203
match self {
204204
Link::Uses(UsedLink { paragraph, .. }) => paragraph,

src/html/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub struct HyperlinkEmitter<'a, 'l, 'd, P: ParagraphWalker> {
4545
pub check_anchors: bool,
4646
}
4747

48-
impl<'a, 'l, 'd, P> HyperlinkEmitter<'a, 'l, 'd, P>
48+
impl<'a, 'l, P> HyperlinkEmitter<'a, 'l, '_, P>
4949
where
5050
'a: 'l,
5151
P: ParagraphWalker,
@@ -115,7 +115,7 @@ where
115115
}
116116
}
117117

118-
impl<'a, 'l, 'd, P> Emitter for HyperlinkEmitter<'a, 'l, 'd, P>
118+
impl<'a, 'l, P> Emitter for HyperlinkEmitter<'a, 'l, '_, P>
119119
where
120120
'a: 'l,
121121
P: ParagraphWalker,

0 commit comments

Comments
 (0)