Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Br1ght0ne committed Jan 25, 2024
1 parent 4a7565f commit fea283b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fuels-core/src/types/core/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl AsRef<[u8]> for Identity {

impl From<&Address> for Identity {
fn from(address: &Address) -> Self {
Self::Address(address.clone())
Self::Address(*address)
}
}
impl From<Address> for Identity {
Expand All @@ -41,7 +41,7 @@ impl From<Address> for Identity {

impl From<&ContractId> for Identity {
fn from(contract_id: &ContractId) -> Self {
Self::ContractId(contract_id.clone())
Self::ContractId(*contract_id)
}
}
impl From<ContractId> for Identity {
Expand Down

0 comments on commit fea283b

Please sign in to comment.