Make clippy happy on latest nightly (#11403)

Co-authored-by: Vladimir Istyufeev <vladimir@parity.io>
This commit is contained in:
Bastian Köcher
2022-05-12 13:02:29 +02:00
committed by GitHub
parent 0873e1703b
commit 9cb699bfe9
2 changed files with 2 additions and 2 deletions
@@ -159,7 +159,7 @@ fn generate_chain_spec(
Default::default(),
);
chain_spec.as_json(false).map_err(|err| err)
chain_spec.as_json(false)
}
fn generate_authority_keys_and_store(seeds: &[String], keystore_path: &Path) -> Result<(), String> {
+1 -1
View File
@@ -71,7 +71,7 @@ impl<'a> From<&'a str> for Error {
}
}
impl<'a> From<String> for Error {
impl From<String> for Error {
fn from(s: String) -> Self {
Error::Other(s)
}