clippy: FlashKind: implement from instead of into

This commit is contained in:
Philippe Loctaux 2023-03-08 00:27:20 +01:00
parent 2d714f4220
commit 1fd7901037

View file

@ -22,8 +22,8 @@ impl Display for FlashKind {
}
}
impl Into<String> for FlashKind {
fn into(self) -> String {
self.to_string()
impl From<FlashKind> for String {
fn from(value: FlashKind) -> Self {
value.to_string()
}
}