Skip to content

Commit

Permalink
style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosa committed Nov 26, 2024
1 parent e1441a8 commit b571e33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rs/cli/src/commands/update_authorized_subnets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ fn construct_summary(
.values()
.map(|s| {
let excluded_desc = excluded_subnets.get(&s.principal);
let was_public = current_public_subnets.iter().find(|principal| *principal == &s.principal).is_some();
let was_public = current_public_subnets.iter().any(|principal| principal == &s.principal);
format!(
"| {} | {} | {} |",
s.principal,
match (was_public, excluded_desc.is_none()) {
// The state doesn't change
(was_public, is_excluded) if was_public == is_excluded => was_public.to_string(),
// It changed from `was_public` to `is_excluded`
(was_public, is_excluded) => format!("~~{}~~ {}", was_public, is_excluded),
(was_public, is_excluded) => format!("~~{}~~ {}", was_public, is_excluded),
},
excluded_desc.map(|s| s.to_string()).unwrap_or_default()
)
Expand Down
2 changes: 1 addition & 1 deletion rs/ic-canisters/src/cycles_minting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl From<IcAgentCanisterClient> for CyclesMintingCanisterWrapper {
fn from(value: IcAgentCanisterClient) -> Self {
Self {
agent: value,
canister_id: CYCLES_MINTING_CANISTER_ID.clone(),
canister_id: CYCLES_MINTING_CANISTER_ID,
}
}
}
Expand Down

0 comments on commit b571e33

Please sign in to comment.