summaryrefslogtreecommitdiffstats
path: root/core/src/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-12-02 19:53:16 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-12-02 19:56:27 +0100
commit602661372c921ef5079283ccd5f477c63977239f (patch)
tree1dfc3dc27986a2f0e8700b887a6dab8a1b3b77bc /core/src/text.rs
parente8f8216ea1f9deef7f2d02fa2600a0b4e247f8fa (diff)
downloadiced-602661372c921ef5079283ccd5f477c63977239f.tar.gz
iced-602661372c921ef5079283ccd5f477c63977239f.tar.bz2
iced-602661372c921ef5079283ccd5f477c63977239f.zip
Fix new `clippy` lints
Diffstat (limited to 'core/src/text.rs')
-rw-r--r--core/src/text.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/text.rs b/core/src/text.rs
index a9e3dce5..c144fd24 100644
--- a/core/src/text.rs
+++ b/core/src/text.rs
@@ -446,7 +446,7 @@ impl<'a, Link, Font> From<&'a str> for Span<'a, Link, Font> {
}
}
-impl<'a, Link, Font: PartialEq> PartialEq for Span<'a, Link, Font> {
+impl<Link, Font: PartialEq> PartialEq for Span<'_, Link, Font> {
fn eq(&self, other: &Self) -> bool {
self.text == other.text
&& self.size == other.size
@@ -474,7 +474,7 @@ impl<'a> IntoFragment<'a> for Fragment<'a> {
}
}
-impl<'a, 'b> IntoFragment<'a> for &'a Fragment<'b> {
+impl<'a> IntoFragment<'a> for &'a Fragment<'_> {
fn into_fragment(self) -> Fragment<'a> {
Fragment::Borrowed(self)
}