Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some clippy warnings #20

Merged
merged 1 commit into from
Jun 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading