cargo +nightly fmt --all (#1192)

This commit is contained in:
Svyatoslav Nikolsky
2021-10-25 12:08:14 +03:00
committed by Bastian Köcher
parent 5842968273
commit 6396239e18
12 changed files with 30 additions and 29 deletions
@@ -132,6 +132,7 @@ impl<'a> Validators<'a> {
}
let receipts = receipts.ok_or(Error::MissingTransactionsReceipts)?;
#[allow(clippy::question_mark)]
if header.check_receipts_root(&receipts).is_err() {
return Err(Error::TransactionsReceiptsMismatch)
}
@@ -152,6 +152,7 @@ pub fn accept_aura_header_into_pool<S: Storage, CT: ChainTime>(
// the heaviest, but rare operation - we do not want invalid receipts in the pool
if let Some(receipts) = receipts {
log::trace!(target: "runtime", "Got receipts! {:?}", receipts);
#[allow(clippy::question_mark)]
if header.check_receipts_root(receipts).is_err() {
return Err(Error::TransactionsReceiptsMismatch)
}
+1
View File
@@ -226,6 +226,7 @@ pub mod pallet {
/// Violating rule#1 will lead to losing your `source_balance_at_this_chain` tokens.
/// Violating other rules will lead to losing message fees for this and other transactions +
/// losing fees for message transfer.
#[allow(clippy::boxed_local)]
#[pallet::weight(
T::WeightInfo::create_swap()
.saturating_add(T::WeightInfo::send_message_weight(