clippy: FlashKind: implement from instead of into
This commit is contained in:
parent
2d714f4220
commit
1fd7901037
1 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue