Skip to content
Snippets Groups Projects
Unverified Commit 249f4bda authored by Shaopeng Wang's avatar Shaopeng Wang Committed by GitHub
Browse files

Oracle rpc clippy fix. (#191)

parent d0675a59
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
// The `too_many_arguments` warning originates from `decl_runtime_apis` macro.
#![allow(clippy::too_many_arguments)]
use codec::Codec; use codec::Codec;
use sp_std::prelude::Vec; use sp_std::prelude::Vec;
......
...@@ -65,7 +65,6 @@ where ...@@ -65,7 +65,6 @@ where
message: "Unable to get value.".into(), message: "Unable to get value.".into(),
data: Some(format!("{:?}", e).into()), data: Some(format!("{:?}", e).into()),
}) })
.into()
} }
fn get_all_values(&self, at: Option<<Block as BlockT>::Hash>) -> Result<Vec<(Key, Option<Value>)>> { fn get_all_values(&self, at: Option<<Block as BlockT>::Hash>) -> Result<Vec<(Key, Option<Value>)>> {
...@@ -79,6 +78,5 @@ where ...@@ -79,6 +78,5 @@ where
message: "Unable to get all values.".into(), message: "Unable to get all values.".into(),
data: Some(format!("{:?}", e).into()), data: Some(format!("{:?}", e).into()),
}) })
.into()
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment