Skip to content

Commit b8ecfd1

Browse files
committed
update toolchain to 1.90 and fix clippy errors
1 parent 6d8f770 commit b8ecfd1

File tree

4 files changed

+3
-55
lines changed

4 files changed

+3
-55
lines changed

crates/boundless-cli/src/indexer_client.rs

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -236,45 +236,6 @@ pub struct PaginationInfo {
236236
pub limit: u32,
237237
}
238238

239-
#[derive(Debug, Deserialize, Serialize)]
240-
pub struct StakingEntry {
241-
pub staker_address: String,
242-
pub epoch: u64,
243-
pub staked_amount: String,
244-
pub staked_amount_formatted: String,
245-
pub is_withdrawing: bool,
246-
pub rewards_generated: String,
247-
pub rewards_generated_formatted: String,
248-
#[serde(skip_serializing_if = "Option::is_none")]
249-
pub rank: Option<u64>,
250-
#[serde(skip_serializing_if = "Option::is_none")]
251-
pub rewards_delegated_to: Option<String>,
252-
#[serde(skip_serializing_if = "Option::is_none")]
253-
pub votes_delegated_to: Option<String>,
254-
}
255-
256-
#[derive(Debug, Deserialize, Serialize)]
257-
pub struct StakingSummary {
258-
pub staker_address: String,
259-
pub total_staked: String,
260-
pub total_staked_formatted: String,
261-
pub is_withdrawing: bool,
262-
pub epochs_participated: u64,
263-
pub total_rewards_generated: String,
264-
pub total_rewards_generated_formatted: String,
265-
#[serde(skip_serializing_if = "Option::is_none")]
266-
pub rewards_delegated_to: Option<String>,
267-
#[serde(skip_serializing_if = "Option::is_none")]
268-
pub votes_delegated_to: Option<String>,
269-
}
270-
271-
#[derive(Debug, Deserialize, Serialize)]
272-
pub struct StakingHistoryResponse {
273-
pub entries: Vec<StakingEntry>,
274-
pub pagination: PaginationInfo,
275-
pub summary: Option<StakingSummary>,
276-
}
277-
278239
#[derive(Debug, Deserialize, Serialize)]
279240
pub struct EpochStakingSummary {
280241
pub epoch: u64,
@@ -293,13 +254,6 @@ pub struct EpochStakingSummary {
293254
pub last_updated_at: Option<String>,
294255
}
295256

296-
#[derive(Debug, Deserialize, Serialize)]
297-
pub struct EpochStakingResponse {
298-
pub entries: Vec<StakingEntry>,
299-
pub pagination: PaginationInfo,
300-
pub summary: Option<EpochStakingSummary>,
301-
}
302-
303257
#[derive(Debug, Deserialize, Serialize)]
304258
pub struct PovwEntry {
305259
#[serde(skip_serializing_if = "Option::is_none")]
@@ -349,13 +303,6 @@ pub struct EpochPovwSummary {
349303
pub last_updated_at: Option<String>,
350304
}
351305

352-
#[derive(Debug, Deserialize, Serialize)]
353-
pub struct EpochPovwResponse {
354-
pub entries: Vec<PovwEntry>,
355-
pub pagination: PaginationInfo,
356-
pub summary: Option<EpochPovwSummary>,
357-
}
358-
359306
///Data for a specific address in a specific epoch
360307
#[derive(Debug, Deserialize, Serialize)]
361308
pub struct EpochPovwAddressData {

crates/lambdas/indexer-api/src/models.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use serde::{Deserialize, Serialize};
1616
use utoipa::ToSchema;
1717

1818
/// Health check response
19+
#[allow(dead_code)]
1920
#[derive(Debug, Serialize, Deserialize, ToSchema)]
2021
pub struct HealthResponse {
2122
pub status: String,

crates/lambdas/indexer-api/tests/local_integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ impl SharedTestEnv {
233233
}
234234

235235
// Print progress every 5 seconds
236-
if start.elapsed().as_secs() % 5 == 0 {
236+
if start.elapsed().as_secs().is_multiple_of(5) {
237237
let size = std::fs::metadata(db_path).map(|m| m.len()).unwrap_or(0);
238238
debug!(
239239
"Still indexing... (elapsed: {}s, DB size: {} bytes)",

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "1.89"
2+
channel = "1.90"
33
components = ["clippy", "rustfmt", "rust-src"]
44
profile = "minimal"

0 commit comments

Comments
 (0)