Skip to content

Commit

Permalink
Merge pull request #20 from freenet/fix-clippy
Browse files Browse the repository at this point in the history
Fix some clippy warnings
  • Loading branch information
iduartgomez authored Jun 8, 2024
2 parents 90b3192 + 19e290a commit 7cde4e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/src/contract_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ impl Display for ContractInstanceId {

/// A complete key specification, that represents a cryptographic hash that identifies the contract.
#[serde_as]
#[derive(Debug, Eq, Clone, Serialize, Deserialize)]
#[derive(Debug, Eq, Copy, Clone, Serialize, Deserialize)]
#[cfg_attr(any(feature = "testing", test), derive(arbitrary::Arbitrary))]
pub struct ContractKey {
instance: ContractInstanceId,
Expand Down
2 changes: 1 addition & 1 deletion rust/src/delegate_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ pub trait DelegateInterface {
///
/// # Arguments
/// - attested: an optional identifier for the client of this function. Usually will
/// be a [`ContractInstanceId`].
/// be a [`ContractInstanceId`].
fn process(
parameters: Parameters<'static>,
attested: Option<&'static [u8]>,
Expand Down
2 changes: 1 addition & 1 deletion rust/src/versioning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ impl ContractContainer {
/// Return the `ContractKey` from the specific contract version.
pub fn key(&self) -> ContractKey {
match self {
Self::Wasm(ContractWasmAPIVersion::V1(contract_v1)) => contract_v1.key().clone(),
Self::Wasm(ContractWasmAPIVersion::V1(contract_v1)) => *contract_v1.key(),
}
}

Expand Down

0 comments on commit 7cde4e7

Please sign in to comment.