mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
Improve match statement (#8817)
This commit is contained in:
+1
-4
@@ -239,8 +239,5 @@ fn generate_call_to_trait(
|
||||
|
||||
/// Returns if the given `Signature` takes a `self` argument.
|
||||
fn takes_self_argument(sig: &Signature) -> bool {
|
||||
match sig.inputs.first() {
|
||||
Some(FnArg::Receiver(_)) => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(sig.inputs.first(), Some(FnArg::Receiver(_)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user