From 399ac68cb1547ba4879e389c28d72aa7a2bae139 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 31 Jan 2020 11:52:30 +0000 Subject: [PATCH] Allow irrefutable let pattern for subscriptions, remove legacy lint --- src/lib.rs | 1 - src/rpc.rs | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 26ec6988b9..e0acd6de08 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,7 +27,6 @@ overflowing_literals, path_statements, patterns_in_fns_without_body, - plugin_as_library, private_in_public, unconditional_recursion, unused_allocation, diff --git a/src/rpc.rs b/src/rpc.rs index 78d7b3721a..7454dc6b82 100644 --- a/src/rpc.rs +++ b/src/rpc.rs @@ -14,6 +14,11 @@ // You should have received a copy of the GNU General Public License // along with substrate-subxt. If not, see . +// jsonrpsee subscriptions are interminable. +// Allows `while let status = subscription.next().await {}` +// Related: https://github.com/paritytech/substrate-subxt/issues/66 +#![allow(irrefutable_let_patterns)] + use std::convert::TryInto; use codec::{