diff --git a/oracle/rpc/runtime-api/src/lib.rs b/oracle/rpc/runtime-api/src/lib.rs index 6bfe62bf647d6ca7a7f7d059f5becfb40f22fb7b..90665de183c298b47226a8c08c90bf45769f702c 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 3163c3695b8381445d8c81869274af36d765de0f..1a01602e587b41d81186ba81ad751adb8375c29c 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() } }