From b2b2ebd03ff2034b0fc3e61f31d35cecb83bf750 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Wed, 20 May 2020 17:54:27 +0300 Subject: [PATCH] Mute warnings from Substrate <-> Substrate runtime module and relay (#104) * mute warnings from sub2sub module+relay * cargo fmt --all --- bridges/modules/substrate/src/lib.rs | 2 ++ bridges/relays/substrate/src/main.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/bridges/modules/substrate/src/lib.rs b/bridges/modules/substrate/src/lib.rs index efbe0904e6bd8..cb6142e426f84 100644 --- a/bridges/modules/substrate/src/lib.rs +++ b/bridges/modules/substrate/src/lib.rs @@ -47,6 +47,8 @@ //! || || //!``` +// TODO: when (if) this module will be resurrected, remove this +#![allow(dead_code)] // Ensure we're `no_std` when compiling for Wasm. #![cfg_attr(not(feature = "std"), no_std)] diff --git a/bridges/relays/substrate/src/main.rs b/bridges/relays/substrate/src/main.rs index 7185313a57114..550ae986b79c9 100644 --- a/bridges/relays/substrate/src/main.rs +++ b/bridges/relays/substrate/src/main.rs @@ -14,6 +14,10 @@ // You should have received a copy of the GNU General Public License // along with Parity Bridges Common. If not, see . +// TODO: when (if) this relay will be resurrected, remove this +#![allow(unused_variables)] +#![allow(dead_code)] + mod bridge; mod error; mod params;