From 4e140805b70590adba6e2cb8a88d4c6aa5ddde2b Mon Sep 17 00:00:00 2001 From: Dan Shields Date: Mon, 31 Jul 2023 12:52:31 -0700 Subject: [PATCH] `cargo clippy +nightly --fix` run on downstream node template --- bin/node-template/pallets/template/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/node-template/pallets/template/src/lib.rs b/bin/node-template/pallets/template/src/lib.rs index 9550d3d546cca..edf7769bab7d3 100644 --- a/bin/node-template/pallets/template/src/lib.rs +++ b/bin/node-template/pallets/template/src/lib.rs @@ -94,7 +94,7 @@ pub mod pallet { // Read a value from storage. match >::get() { // Return an error if the value has not been set. - None => return Err(Error::::NoneValue.into()), + None => Err(Error::::NoneValue.into()), Some(old) => { // Increment the value read from storage; will error in the event of overflow. let new = old.checked_add(1).ok_or(Error::::StorageOverflow)?;