Skip to content

Commit

Permalink
Fix some clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-tkach committed Feb 8, 2025
1 parent 23f21cb commit 0e3962d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ pub(crate) fn cache_for_stake_addr(
txn,
catalyst_id,
};
CATALYST_ID_BY_STAKE_ADDRESS_CACHE.insert(stake.clone(), value)
CATALYST_ID_BY_STAKE_ADDRESS_CACHE.insert(stake.clone(), value);
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ pub(crate) fn cache_for_transaction_id(
slot_no,
txn_idx,
};
CACHE.insert(transaction_id, value)
CACHE.insert(transaction_id, value);
}
1 change: 1 addition & 0 deletions catalyst-gateway/bin/src/db/types/stake_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ impl<'frame, 'metadata> DeserializeValue<'frame, 'metadata> for DbCip19StakeAddr
/// An invalid length error for `DbCip19StakeAddress` deserialization.
#[derive(Debug)]
struct InvalidLength {
/// An incorrect actual length value.
length: usize,
}

Expand Down
5 changes: 3 additions & 2 deletions catalyst-gateway/bin/src/service/api/cardano/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ impl Api {
/// Get RBAC chain root for a given role0 key.
///
/// This endpoint returns the RBAC certificate chain root for a given role 0 key.
// TODO: "Chain root" was replaced by "Catalyst ID", so this endpoint needs to be updated or
// removed.
#[allow(clippy::unused_async)]
async fn rbac_role0_key_chain_root(
&self,
/// Role0 key to get the chain root for.
Expand All @@ -110,8 +113,6 @@ impl Api {
/// No Authorization required, but Token permitted.
_auth: NoneOrRBAC,
) -> rbac::chain_root_get::AllResponses {
// TODO: "Chain root" was replaced by "Catalyst ID", so this endpoint needs to be updated
// or removed.
rbac::chain_root_get::AllResponses::internal_error(&anyhow::anyhow!("Removed"))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl Type for CatalystId {
fn schema_ref() -> MetaSchemaRef {
let schema = MetaSchema {
title: Some("Catalyst short ID".into()),
description: Some("Catalyst short identifier in string format".into()),
description: Some("Catalyst short identifier in string format"),
example: Some("cardano/FftxFnOrj2qmTuB2oZG2v0YEWJfKvQ9Gg8AgNAhDsKE".into()),
..MetaSchema::ANY
};
Expand Down

0 comments on commit 0e3962d

Please sign in to comment.