From 249f4bda5337ce18a0be3231fc3e3ac467a6d09b Mon Sep 17 00:00:00 2001 From: Shaopeng Wang <spxwang@gmail.com> Date: Fri, 29 May 2020 13:00:04 +1200 Subject: [PATCH] Oracle rpc clippy fix. (#191) --- oracle/rpc/runtime-api/src/lib.rs | 3 +++ oracle/rpc/src/lib.rs | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/oracle/rpc/runtime-api/src/lib.rs b/oracle/rpc/runtime-api/src/lib.rs index 6bfe62b..90665de 100644 --- a/oracle/rpc/runtime-api/src/lib.rs +++ b/oracle/rpc/runtime-api/src/lib.rs @@ -2,6 +2,9 @@ #![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 sp_std::prelude::Vec; diff --git a/oracle/rpc/src/lib.rs b/oracle/rpc/src/lib.rs index 3163c36..1a01602 100644 --- a/oracle/rpc/src/lib.rs +++ b/oracle/rpc/src/lib.rs @@ -65,7 +65,6 @@ where message: "Unable to get value.".into(), data: Some(format!("{:?}", e).into()), }) - .into() } fn get_all_values(&self, at: Option<<Block as BlockT>::Hash>) -> Result<Vec<(Key, Option<Value>)>> { @@ -79,6 +78,5 @@ where message: "Unable to get all values.".into(), data: Some(format!("{:?}", e).into()), }) - .into() } } -- GitLab