Skip to content

Commit

Permalink
chore: use nightly-2021-08-01
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Hill <[email protected]>
  • Loading branch information
gregdhill authored and sander2 committed Oct 11, 2021
1 parent 7f76ddf commit 8902e4e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/currency/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#![deny(warnings)]
#![cfg_attr(test, feature(proc_macro_hygiene))]
#![cfg_attr(not(feature = "std"), no_std)]
#![feature(const_fn)]
#![feature(const_fn_trait_bound)]

#[cfg(test)]
mod mock;
Expand Down
8 changes: 4 additions & 4 deletions crates/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ macro_rules! checked_add_mut {
<$storage>::mutate($currency, |value| {
*value = value.checked_add($amount).ok_or(Error::<T>::ArithmeticOverflow)?;
Ok::<_, Error<T>>(*value)
})?;
})?
};
($storage:ty, $currency:expr, $account:expr, $amount:expr) => {
<$storage>::mutate($currency, $account, |value| {
*value = value.checked_add($amount).ok_or(Error::<T>::ArithmeticOverflow)?;
Ok::<_, Error<T>>(*value)
})?;
})?
};
}

Expand All @@ -215,13 +215,13 @@ macro_rules! checked_sub_mut {
<$storage>::mutate($currency, |value| {
*value = value.checked_sub($amount).ok_or(Error::<T>::ArithmeticUnderflow)?;
Ok::<_, Error<T>>(*value)
})?;
})?
};
($storage:ty, $currency:expr, $account:expr, $amount:expr) => {
<$storage>::mutate($currency, $account, |value| {
*value = value.checked_sub($amount).ok_or(Error::<T>::ArithmeticUnderflow)?;
Ok::<_, Error<T>>(*value)
})?;
})?
};
}

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "nightly-2021-03-15"
channel = "nightly-2021-08-01"
components = [ "rustfmt", "rls" ]
targets = [ "wasm32-unknown-unknown" ]

0 comments on commit 8902e4e

Please sign in to comment.