Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
gui1117 committed Dec 4, 2024
1 parent f62152a commit 33646e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions substrate/frame/support/procedural/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1444,9 +1444,8 @@ pub fn dynamic_aggregated_params_internal(attrs: TokenStream, input: TokenStream
/// Authorize process comes with 2 attributes macro on top of the authorized call:
///
/// * `#[pallet::authorize($authorized_function)]` - defines the function that authorizes the call.
/// First argument is the transaction source `TransactionSource`
/// then followed by the same as call arguments but by reference `&`. Return type is
/// `TransactionValidityWithRefund`.
/// First argument is the transaction source `TransactionSource` then followed by the same as call
/// arguments but by reference `&`. Return type is `TransactionValidityWithRefund`.
/// * `#[pallet::weight_of_authorize($weight)]` - defines the value of the weight of the authorize
/// function. This attribute is similar to `#[pallet::weight]`:
/// * it can be ignore in `dev_mode`
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/support/test/tests/authorize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub mod pallet1 {
longevity: *e,
propagate: *f,
};
Ok((valid, authorize_refund.clone()))
Ok((valid, *authorize_refund))
} else {
Err(TransactionValidityError::Invalid(InvalidTransaction::Call))
}
Expand Down

0 comments on commit 33646e7

Please sign in to comment.