Allow irrefutable let pattern for subscriptions, remove legacy lint

This commit is contained in:
Andrew Jones
2020-01-31 11:52:30 +00:00
parent 1a5e74ac76
commit 399ac68cb1
2 changed files with 5 additions and 1 deletions
-1
View File
@@ -27,7 +27,6 @@
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
plugin_as_library,
private_in_public,
unconditional_recursion,
unused_allocation,
+5
View File
@@ -14,6 +14,11 @@
// You should have received a copy of the GNU General Public License
// along with substrate-subxt. If not, see <http://www.gnu.org/licenses/>.
// 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::{