diff --git a/identity_document/src/document/core_document.rs b/identity_document/src/document/core_document.rs index 2747f7fae6..1e1a340bb4 100644 --- a/identity_document/src/document/core_document.rs +++ b/identity_document/src/document/core_document.rs @@ -690,7 +690,7 @@ impl CoreDocument { &'me self, method_query: Q, scope: Option, - ) -> Option<&VerificationMethod> + ) -> Option<&'me VerificationMethod> where Q: Into>, { @@ -773,7 +773,7 @@ impl CoreDocument { /// Returns the first [`Service`] with an `id` property matching the provided `service_query`, if present. // NOTE: This method demonstrates unexpected behavior in the edge cases where the document contains // services whose ids are of the form #. - pub fn resolve_service<'query, 'me, Q>(&'me self, service_query: Q) -> Option<&Service> + pub fn resolve_service<'query, 'me, Q>(&'me self, service_query: Q) -> Option<&'me Service> where Q: Into>, { diff --git a/identity_iota_core/src/document/iota_document.rs b/identity_iota_core/src/document/iota_document.rs index 73e07d41fd..60e304aa17 100644 --- a/identity_iota_core/src/document/iota_document.rs +++ b/identity_iota_core/src/document/iota_document.rs @@ -332,7 +332,7 @@ impl IotaDocument { /// Returns the first [`Service`] with an `id` property matching the provided `service_query`, if present. // NOTE: This method demonstrates unexpected behaviour in the edge cases where the document contains // services whose ids are of the form #. - pub fn resolve_service<'query, 'me, Q>(&'me self, service_query: Q) -> Option<&Service> + pub fn resolve_service<'query, 'me, Q>(&'me self, service_query: Q) -> Option<&'me Service> where Q: Into>, { @@ -347,7 +347,7 @@ impl IotaDocument { &'me self, method_query: Q, scope: Option, - ) -> Option<&VerificationMethod> + ) -> Option<&'me VerificationMethod> where Q: Into>, { diff --git a/identity_iota_core/src/rebased/assets/asset.rs b/identity_iota_core/src/rebased/assets/asset.rs index e1e60b3e41..e96554262e 100644 --- a/identity_iota_core/src/rebased/assets/asset.rs +++ b/identity_iota_core/src/rebased/assets/asset.rs @@ -223,7 +223,7 @@ impl AuthenticatedAssetBuilder { } /// Proposal for the transfer of an [`AuthenticatedAsset`]'s ownership from one [`IotaAddress`] to another. - +/// /// # Detailed Workflow /// A [`TransferProposal`] is a **shared** _Move_ object that represents a request to transfer ownership /// of an [`AuthenticatedAsset`] to a new owner. @@ -375,7 +375,7 @@ pub struct UpdateContentTx<'a, T> { } #[async_trait] -impl<'a, T> Transaction for UpdateContentTx<'a, T> +impl Transaction for UpdateContentTx<'_, T> where T: MoveType + Serialize + Clone + Send + Sync, { diff --git a/identity_iota_core/src/rebased/migration/alias.rs b/identity_iota_core/src/rebased/migration/alias.rs index ba56ca3790..917edf4c13 100644 --- a/identity_iota_core/src/rebased/migration/alias.rs +++ b/identity_iota_core/src/rebased/migration/alias.rs @@ -45,7 +45,6 @@ pub struct UnmigratedAlias { /// The sender feature. pub sender: Option, - /// The metadata feature. pub metadata: Option>, /// The immutable issuer feature. pub immutable_issuer: Option, diff --git a/identity_iota_core/src/rebased/migration/identity.rs b/identity_iota_core/src/rebased/migration/identity.rs index 16b1d9e4c6..561659f6c0 100644 --- a/identity_iota_core/src/rebased/migration/identity.rs +++ b/identity_iota_core/src/rebased/migration/identity.rs @@ -501,7 +501,7 @@ impl MoveType for OnChainIdentity { pub struct CreateIdentityTx<'a>(IdentityBuilder<'a>); #[async_trait] -impl<'a> Transaction for CreateIdentityTx<'a> { +impl Transaction for CreateIdentityTx<'_> { type Output = OnChainIdentity; async fn execute_with_opt_gas( self, diff --git a/identity_iota_core/src/rebased/proposals/borrow.rs b/identity_iota_core/src/rebased/proposals/borrow.rs index 3ff90dc495..145b3a8bf2 100644 --- a/identity_iota_core/src/rebased/proposals/borrow.rs +++ b/identity_iota_core/src/rebased/proposals/borrow.rs @@ -73,7 +73,7 @@ impl BorrowAction { } } -impl<'i> ProposalBuilder<'i, BorrowAction> { +impl ProposalBuilder<'_, BorrowAction> { /// Adds an object to the list of objects that will be borrowed when executing this action. pub fn borrow(mut self, object_id: ObjectID) -> Self { self.borrow_object(object_id); @@ -177,7 +177,7 @@ impl<'i> ProtoTransaction for UserDrivenTx<'i, BorrowAction> { } #[async_trait] -impl<'i, F> Transaction for UserDrivenTx<'i, BorrowActionWithIntent> +impl Transaction for UserDrivenTx<'_, BorrowActionWithIntent> where F: FnOnce(&mut Ptb, &HashMap) + Send, { diff --git a/identity_iota_core/src/rebased/proposals/config_change.rs b/identity_iota_core/src/rebased/proposals/config_change.rs index cec2bc10c5..eec2b54cb5 100644 --- a/identity_iota_core/src/rebased/proposals/config_change.rs +++ b/identity_iota_core/src/rebased/proposals/config_change.rs @@ -52,7 +52,7 @@ impl MoveType for ConfigChange { } } -impl<'i> ProposalBuilder<'i, ConfigChange> { +impl ProposalBuilder<'_, ConfigChange> { /// Sets a new value for the identity's threshold. pub fn threshold(mut self, threshold: u64) -> Self { self.set_threshold(threshold); diff --git a/identity_iota_core/src/rebased/proposals/controller.rs b/identity_iota_core/src/rebased/proposals/controller.rs index ec71fc0ecd..4be8b08e84 100644 --- a/identity_iota_core/src/rebased/proposals/controller.rs +++ b/identity_iota_core/src/rebased/proposals/controller.rs @@ -160,7 +160,7 @@ impl<'i> ProtoTransaction for UserDrivenTx<'i, ControllerExecution> { } #[async_trait] -impl<'i, F> Transaction for UserDrivenTx<'i, ControllerExecutionWithIntent> +impl Transaction for UserDrivenTx<'_, ControllerExecutionWithIntent> where F: FnOnce(&mut Ptb, &Argument) + Send, { diff --git a/identity_iota_core/src/rebased/proposals/mod.rs b/identity_iota_core/src/rebased/proposals/mod.rs index cb9f61987b..a5b8b53808 100644 --- a/identity_iota_core/src/rebased/proposals/mod.rs +++ b/identity_iota_core/src/rebased/proposals/mod.rs @@ -96,14 +96,14 @@ pub struct ProposalBuilder<'i, A> { action: A, } -impl<'i, A> Deref for ProposalBuilder<'i, A> { +impl Deref for ProposalBuilder<'_, A> { type Target = A; fn deref(&self) -> &Self::Target { &self.action } } -impl<'i, A> DerefMut for ProposalBuilder<'i, A> { +impl DerefMut for ProposalBuilder<'_, A> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.action } @@ -161,7 +161,7 @@ pub struct CreateProposalTx<'i, A> { } #[async_trait] -impl<'i, A> Transaction for CreateProposalTx<'i, A> +impl Transaction for CreateProposalTx<'_, A> where Proposal: ProposalT + DeserializeOwned, A: Send, @@ -234,7 +234,7 @@ pub struct ExecuteProposalTx<'i, A> { } #[async_trait] -impl<'i, A> Transaction for ExecuteProposalTx<'i, A> +impl Transaction for ExecuteProposalTx<'_, A> where Proposal: ProposalT, A: Send, @@ -278,7 +278,7 @@ pub struct ApproveProposalTx<'p, 'i, A> { } #[async_trait] -impl<'p, 'i, A> Transaction for ApproveProposalTx<'p, 'i, A> +impl Transaction for ApproveProposalTx<'_, '_, A> where Proposal: ProposalT, A: MoveType + Send, diff --git a/identity_iota_core/src/rebased/proposals/send.rs b/identity_iota_core/src/rebased/proposals/send.rs index 61ee22bae0..5b68a2d67e 100644 --- a/identity_iota_core/src/rebased/proposals/send.rs +++ b/identity_iota_core/src/rebased/proposals/send.rs @@ -63,7 +63,7 @@ impl SendAction { } } -impl<'i> ProposalBuilder<'i, SendAction> { +impl ProposalBuilder<'_, SendAction> { /// Adds one object to the list of objects to send. pub fn object(mut self, object_id: ObjectID, recipient: IotaAddress) -> Self { self.send_object(object_id, recipient);