Skip to content

Commit

Permalink
chore: update toolchain version to nightly 1.59 (#339)
Browse files Browse the repository at this point in the history
* chore: bump up toolchain to nightly 1.59

* chore: address Clippy warnings
  • Loading branch information
ntn-x2 committed Mar 22, 2022
1 parent edc254f commit ce70247
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
19 changes: 17 additions & 2 deletions pallets/attestation/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,22 @@ pub(crate) mod runtime {

impl ExtBuilder {
#[must_use]
pub fn with_ctypes(mut self, ctypes: Vec<(CtypeHashOf<Test>, CtypeCreatorOf<Test>)>) -> Self {
pub fn with_delegation_hierarchies(
mut self,
delegation_hierarchies: DelegationHierarchyInitialization<Test>,
) -> Self {
self.delegation_hierarchies = delegation_hierarchies;
self
}

#[must_use]
pub fn with_delegations(mut self, delegations: Vec<(TestDelegationNodeId, DelegationNode<Test>)>) -> Self {
self.delegations = delegations;
self
}

#[must_use]
pub fn with_ctypes(mut self, ctypes: Vec<(TestCtypeHash, CtypeCreatorOf<Test>)>) -> Self {
self.ctypes = ctypes;
self
}
Expand All @@ -336,7 +351,7 @@ pub(crate) mod runtime {
}

#[must_use]
pub fn with_attestations(mut self, attestations: Vec<(ClaimHashOf<Test>, AttestationDetails<Test>)>) -> Self {
pub fn with_attestations(mut self, attestations: Vec<(TestClaimHash, AttestationDetails<Test>)>) -> Self {
self.attestations = attestations;
self
}
Expand Down
12 changes: 3 additions & 9 deletions pallets/delegation/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,20 +464,14 @@ pub(crate) mod runtime {
}

#[must_use]
pub fn with_ctypes(mut self, ctypes: Vec<(CtypeHashOf<Test>, SubjectId)>) -> Self {
pub fn with_ctypes(mut self, ctypes: Vec<(TestCtypeHash, SubjectId)>) -> Self {
self.ctypes = ctypes;
self
}

#[must_use]
pub fn with_delegations(mut self, delegations: Vec<(DelegationNodeIdOf<Test>, DelegationNode<Test>)>) -> Self {
self.delegations = delegations;
self
}

#[must_use]
pub fn with_attestations(mut self, attestations: Vec<(ClaimHashOf<Test>, AttestationDetails<Test>)>) -> Self {
self.attestations = attestations;
pub fn with_delegations(mut self, delegations: Vec<(TestDelegationNodeId, DelegationNode<Test>)>) -> Self {
self.delegations_stored = delegations;
self
}

Expand Down

0 comments on commit ce70247

Please sign in to comment.