mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 01:07:57 +00:00
cargo clippy +nightly --fix run on downstream node template (#14693)
This commit is contained in:
@@ -94,7 +94,7 @@ pub mod pallet {
|
||||
// Read a value from storage.
|
||||
match <Something<T>>::get() {
|
||||
// Return an error if the value has not been set.
|
||||
None => return Err(Error::<T>::NoneValue.into()),
|
||||
None => Err(Error::<T>::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::<T>::StorageOverflow)?;
|
||||
|
||||
Reference in New Issue
Block a user