From 1fd7901037e22c1feec36354597a2e2cfb30069c Mon Sep 17 00:00:00 2001 From: Philippe Loctaux Date: Wed, 8 Mar 2023 00:27:20 +0100 Subject: [PATCH] clippy: FlashKind: implement from instead of into --- crates/ezidam/src/page/flash.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ezidam/src/page/flash.rs b/crates/ezidam/src/page/flash.rs index c138b01..b80253e 100644 --- a/crates/ezidam/src/page/flash.rs +++ b/crates/ezidam/src/page/flash.rs @@ -22,8 +22,8 @@ impl Display for FlashKind { } } -impl Into for FlashKind { - fn into(self) -> String { - self.to_string() +impl From for String { + fn from(value: FlashKind) -> Self { + value.to_string() } }