mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
Fix Rust beta compiler warnings (rustc 1.75.0-beta.1 (782883f60 2023-11-12)) (#4932)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//! Helper functions and an extension trait for Ethereum 2 ENRs.
|
||||
|
||||
pub use discv5::enr::{self, CombinedKey, EnrBuilder};
|
||||
pub use discv5::enr::{CombinedKey, EnrBuilder};
|
||||
|
||||
use super::enr_ext::CombinedKeyExt;
|
||||
use super::ENR_FILENAME;
|
||||
|
||||
@@ -1489,7 +1489,7 @@ mod tests {
|
||||
assert!(the_best.is_some());
|
||||
// Consistency check
|
||||
let best_peers = pdb.best_peers_by_status(PeerInfo::is_connected);
|
||||
assert_eq!(the_best.unwrap(), best_peers.get(0).unwrap().0);
|
||||
assert_eq!(the_best.unwrap(), best_peers.first().unwrap().0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -378,7 +378,7 @@ fn handle_error<T>(
|
||||
Ok(None)
|
||||
}
|
||||
}
|
||||
_ => Err(err).map_err(RPCError::from),
|
||||
_ => Err(RPCError::from(err)),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user