Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
frdomovic committed Dec 2, 2024
1 parent 0dcd406 commit 23c9c6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/context/config/src/client/env/config/mutate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ impl<'a> Method<Icp> for Mutate<'a> {
let signed = ICPSigned::new(request, |b| signer_sk.sign(b))?;

let encoded2 = Encode!(&signed)?;

let encoded = candid::encode_one(&signed)?;

println!("encoded: {:?}", encoded);
println!("encoded2: {:?}", encoded2);

Expand Down
6 changes: 2 additions & 4 deletions crates/context/config/src/client/env/config/query/members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,8 @@ impl Method<Icp> for MembersRequest {
fn decode(response: Vec<u8>) -> eyre::Result<Self::Returns> {
let decoded: Vec<ICContextIdentity> = Decode!(&response, Vec<ICContextIdentity>)?;

let converted: Result<Vec<ContextIdentity>, _> = decoded
.into_iter()
.map(|id| id.rt())
.collect();
let converted: Result<Vec<ContextIdentity>, _> =
decoded.into_iter().map(|id| id.rt()).collect();

Ok(converted?)
}
Expand Down

0 comments on commit 23c9c6a

Please sign in to comment.