mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
chore: change impl Into<T> for U to impl From<U> for T (#5948)
* chore: Change Into trait impl for KzgProof to From trait impl * chore: change `impl Into <T> for U` to `impl From<U> for T` * chore: remove `from-over-into` clippy lint exception
This commit is contained in:
@@ -39,9 +39,9 @@ pub enum TypeField {
|
||||
Hd,
|
||||
}
|
||||
|
||||
impl Into<String> for TypeField {
|
||||
fn into(self) -> String {
|
||||
match self {
|
||||
impl From<TypeField> for String {
|
||||
fn from(from: TypeField) -> String {
|
||||
match from {
|
||||
TypeField::Hd => "hierarchical deterministic".into(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user