mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +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:
@@ -257,9 +257,9 @@ pub mod deposit_methods {
|
||||
Latest,
|
||||
}
|
||||
|
||||
impl Into<u64> for Eth1Id {
|
||||
fn into(self) -> u64 {
|
||||
match self {
|
||||
impl From<Eth1Id> for u64 {
|
||||
fn from(from: Eth1Id) -> u64 {
|
||||
match from {
|
||||
Eth1Id::Mainnet => 1,
|
||||
Eth1Id::Custom(id) => id,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user