Skip to content

Commit d92c322

Browse files
committed
Apply some PR feedback chage requests
1 parent f34c98d commit d92c322

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ run:
5959
cd processes/omnibus && RUST_LOG=$(LOG_LEVEL) $(CARGO) run --release --bin $(PROCESS_PKG)
6060

6161
fmt:
62+
$(CARGO) fmt --all
63+
64+
check:
6265
$(CARGO) fmt --all -- --check
6366

6467
clippy:

common/src/snapshot/streaming_snapshot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Parses CBOR dumps from Cardano Haskell node's GetCBOR ledger-state query.
1919
//! These snapshots represent the internal `NewEpochState` type and are not formally
2020
//! specified - see: https://github.com/IntersectMBO/cardano-ledger/blob/33e90ea03447b44a389985ca2b158568e5f4ad65/eras/shelley/impl/src/Cardano/Ledger/Shelley/LedgerState/Types.hs#L121-L131
21-
//! and ttps://github.com/rrruko/nes-cddl-hs/blob/main/nes.cddl
21+
//! and https://github.com/rrruko/nes-cddl-hs/blob/main/nes.cddl
2222
2323
use anyhow::{anyhow, Context, Result};
2424
use minicbor::data::Type;
@@ -817,7 +817,7 @@ pub trait ProposalCallback {
817817
fn on_proposals(&mut self, proposals: Vec<GovernanceProposal>) -> Result<()>;
818818
}
819819

820-
/// Callback invoked with Governance ProtocolParameters (previous, current, future)
820+
/// Callback invoked with Governance State ProtocolParameters (previous, current, future)
821821
pub trait GovernanceProtocolParametersCallback {
822822
/// Called once with all proposals
823823
fn on_gs_protocol_parameters(

common/src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,8 +1485,8 @@ pub struct ExUnits {
14851485

14861486
#[derive(serde::Serialize, serde::Deserialize, Debug, PartialEq, Eq, Clone)]
14871487
pub struct ExUnitPrices {
1488-
pub mem_price: RationalNumber, // why not use Ratio here?
1489-
pub step_price: RationalNumber, // and here?
1488+
pub mem_price: RationalNumber,
1489+
pub step_price: RationalNumber,
14901490
}
14911491

14921492
impl<'a, C> minicbor::Decode<'a, C> for ExUnitPrices {

0 commit comments

Comments
 (0)