mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 23:31:07 +00:00
Get rid of unnecessary clone. (#5685)
This commit is contained in:
@@ -740,11 +740,11 @@ impl Initialized {
|
||||
continue
|
||||
}
|
||||
|
||||
match statement.statement().clone() {
|
||||
match statement.statement() {
|
||||
DisputeStatement::Valid(valid_kind) => {
|
||||
let fresh = insert_into_statement_vec(
|
||||
&mut votes.valid,
|
||||
valid_kind,
|
||||
*valid_kind,
|
||||
*val_index,
|
||||
statement.validator_signature().clone(),
|
||||
);
|
||||
@@ -759,7 +759,7 @@ impl Initialized {
|
||||
DisputeStatement::Invalid(invalid_kind) => {
|
||||
let fresh = insert_into_statement_vec(
|
||||
&mut votes.invalid,
|
||||
invalid_kind,
|
||||
*invalid_kind,
|
||||
*val_index,
|
||||
statement.validator_signature().clone(),
|
||||
);
|
||||
|
||||
@@ -1290,7 +1290,7 @@ impl DisputeStatement {
|
||||
}
|
||||
|
||||
/// Different kinds of statements of validity on a candidate.
|
||||
#[derive(Encode, Decode, Clone, PartialEq, RuntimeDebug, TypeInfo)]
|
||||
#[derive(Encode, Decode, Copy, Clone, PartialEq, RuntimeDebug, TypeInfo)]
|
||||
#[cfg_attr(feature = "std", derive(MallocSizeOf))]
|
||||
pub enum ValidDisputeStatementKind {
|
||||
/// An explicit statement issued as part of a dispute.
|
||||
@@ -1308,7 +1308,7 @@ pub enum ValidDisputeStatementKind {
|
||||
}
|
||||
|
||||
/// Different kinds of statements of invalidity on a candidate.
|
||||
#[derive(Encode, Decode, Clone, PartialEq, RuntimeDebug, TypeInfo)]
|
||||
#[derive(Encode, Decode, Copy, Clone, PartialEq, RuntimeDebug, TypeInfo)]
|
||||
#[cfg_attr(feature = "std", derive(MallocSizeOf))]
|
||||
pub enum InvalidDisputeStatementKind {
|
||||
/// An explicit statement issued as part of a dispute.
|
||||
|
||||
Reference in New Issue
Block a user