mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Further expand clippy workspace lints
Achieves a notable amount of reduced async and clones.
This commit is contained in:
@@ -351,9 +351,8 @@ pub mod pallet {
|
||||
|
||||
// Update CurrentSession
|
||||
let session = {
|
||||
let new_session = CurrentSession::<T>::get(network)
|
||||
.map(|session| Session(session.0 + 1))
|
||||
.unwrap_or(Session(0));
|
||||
let new_session =
|
||||
CurrentSession::<T>::get(network).map_or(Session(0), |session| Session(session.0 + 1));
|
||||
CurrentSession::<T>::set(network, Some(new_session));
|
||||
new_session
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user