summaryrefslogtreecommitdiffstats
path: root/graphics/src/widget/qr_code.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-09 18:42:41 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-09 18:43:05 +0200
commit2065a40f642589134142a740ff4198deaa4c378b (patch)
tree00477d6d7cb571332062535557151d5b031d8925 /graphics/src/widget/qr_code.rs
parentd53cc5498b92fb6b573867f5ccb5f8ac93f6be79 (diff)
downloadiced-2065a40f642589134142a740ff4198deaa4c378b.tar.gz
iced-2065a40f642589134142a740ff4198deaa4c378b.tar.bz2
iced-2065a40f642589134142a740ff4198deaa4c378b.zip
Fix `clippy` lints for all crates and features
... and check those in CI as well!
Diffstat (limited to 'graphics/src/widget/qr_code.rs')
-rw-r--r--graphics/src/widget/qr_code.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/src/widget/qr_code.rs b/graphics/src/widget/qr_code.rs
index 86a27fd0..1a5c0b0a 100644
--- a/graphics/src/widget/qr_code.rs
+++ b/graphics/src/widget/qr_code.rs
@@ -125,13 +125,13 @@ where
}
}
-impl<'a, Message, B, T> Into<Element<'a, Message, Renderer<B, T>>>
- for QRCode<'a>
+impl<'a, Message, B, T> From<QRCode<'a>>
+ for Element<'a, Message, Renderer<B, T>>
where
B: Backend,
{
- fn into(self) -> Element<'a, Message, Renderer<B, T>> {
- Element::new(self)
+ fn from(qr_code: QRCode<'a>) -> Self {
+ Self::new(qr_code)
}
}