diff --git a/src/network/constants.rs b/src/network/constants.rs index 8ccc22cc..4b185ee6 100644 --- a/src/network/constants.rs +++ b/src/network/constants.rs @@ -238,9 +238,9 @@ impl From for ServiceFlags { } } -impl Into for ServiceFlags { - fn into(self) -> u64 { - self.0 +impl From for u64 { + fn from(flags: ServiceFlags) -> Self { + flags.0 } } diff --git a/src/util/bip32.rs b/src/util/bip32.rs index 0bc23c64..eff83c78 100644 --- a/src/util/bip32.rs +++ b/src/util/bip32.rs @@ -283,9 +283,9 @@ impl From> for DerivationPath { } } -impl Into> for DerivationPath { - fn into(self) -> Vec { - self.0 +impl From for Vec { + fn from(path: DerivationPath) -> Self { + path.0 } }