mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
Fix Rust beta compiler errors 1.78.0-beta.1 (#5439)
* remove redundant imports * fix test * contains key * fmt * Merge branch 'unstable' into fix-beta-compiler
This commit is contained in:
@@ -17,8 +17,8 @@ pub use crate::slashing_database::{
|
||||
SUPPORTED_INTERCHANGE_FORMAT_VERSION,
|
||||
};
|
||||
use rusqlite::Error as SQLError;
|
||||
use std::fmt::Display;
|
||||
use std::io::{Error as IOError, ErrorKind};
|
||||
use std::string::ToString;
|
||||
use types::{Hash256, PublicKeyBytes};
|
||||
|
||||
/// The filename within the `validators` directory that contains the slashing protection DB.
|
||||
@@ -122,9 +122,9 @@ impl From<r2d2::Error> for NotSafe {
|
||||
}
|
||||
}
|
||||
|
||||
impl ToString for NotSafe {
|
||||
fn to_string(&self) -> String {
|
||||
format!("{:?}", self)
|
||||
impl Display for NotSafe {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{:?}", self)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user