Skip to content

Commit a5ad713

Browse files
author
IDX GitHub Automation
committed
Automatically fixing code for linting and formatting issues
1 parent f5865a7 commit a5ad713

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

rs/nervous_system/string/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ pub fn humanize_blob(bytes: &[u8], max_bytes: usize) -> String {
4747
if bytes.len() <= max_bytes {
4848
bytes.iter().map(|b| format!("{b:02x}")).collect()
4949
} else {
50-
let hex: String = bytes[..max_bytes].iter().map(|b| format!("{b:02x}")).collect();
50+
let hex: String = bytes[..max_bytes]
51+
.iter()
52+
.map(|b| format!("{b:02x}"))
53+
.collect();
5154
format!("{hex}... ({} bytes total)", bytes.len())
5255
}
5356
}

rs/nns/governance/src/governance.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,15 @@ use crate::{
3636
ArchivedMonthlyNodeProviderRewards, Ballot, BlessAlternativeGuestOsVersion,
3737
CreateServiceNervousSystem, Followees, GetNeuronsFundAuditInfoRequest,
3838
GetNeuronsFundAuditInfoResponse, Governance as GovernanceProto, GovernanceError,
39-
KnownNeuron, ListKnownNeuronsResponse, ManageNeuron,
40-
MonthlyNodeProviderRewards, Motion, NetworkEconomics, NeuronState,
41-
NeuronsFundAuditInfo, NeuronsFundData,
39+
KnownNeuron, ListKnownNeuronsResponse, ManageNeuron, MonthlyNodeProviderRewards,
40+
Motion, NetworkEconomics, NeuronState, NeuronsFundAuditInfo, NeuronsFundData,
4241
NeuronsFundParticipation as NeuronsFundParticipationPb,
4342
NeuronsFundSnapshot as NeuronsFundSnapshotPb, NnsFunction, NodeProvider, Proposal,
4443
ProposalData, ProposalRewardStatus, ProposalStatus, RestoreAgingSummary, RewardEvent,
4544
RewardNodeProvider, RewardNodeProviders, SettleNeuronsFundParticipationRequest,
4645
SettleNeuronsFundParticipationResponse, SuccessfulProposalExecutionValue, Tally, Topic,
47-
UpdateNodeProvider, Vote, VotingPowerEconomics,
48-
WaitForQuietState, archived_monthly_node_provider_rewards,
46+
UpdateNodeProvider, Vote, VotingPowerEconomics, WaitForQuietState,
47+
archived_monthly_node_provider_rewards,
4948
create_service_nervous_system::LedgerParameters,
5049
get_neurons_fund_audit_info_response,
5150
governance::{

0 commit comments

Comments
 (0)