chore: Fix formatting / linting issues
This commit is contained in:
parent
0535a7334a
commit
5dfda0cc0b
7 changed files with 13 additions and 4 deletions
|
|
@ -1,3 +1,5 @@
|
|||
//! Ledger primitives and cbor codec for the Alonzo era
|
||||
|
||||
mod framework;
|
||||
mod model;
|
||||
mod utils;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use std::{fmt::Debug, marker::PhantomData};
|
||||
use std::fmt::Debug;
|
||||
|
||||
use log::{debug, log_enabled, trace};
|
||||
|
||||
|
|
|
|||
|
|
@ -137,6 +137,7 @@ impl<Q: Query + 'static> Agent for OneShotClient<Q> {
|
|||
self.state == State::Done
|
||||
}
|
||||
|
||||
#[allow(clippy::match_like_matches_macro)]
|
||||
fn has_agency(&self) -> bool {
|
||||
match self.state {
|
||||
State::Idle => true,
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@ pub type TxBody = Vec<u8>;
|
|||
#[derive(Debug, Clone)]
|
||||
pub struct Tx(TxId, TxBody);
|
||||
|
||||
impl Into<TxIdAndSize> for &Tx {
|
||||
fn into(self) -> TxIdAndSize {
|
||||
TxIdAndSize(self.0, self.1.len() as u32)
|
||||
impl From<&Tx> for TxIdAndSize {
|
||||
fn from(other: &Tx) -> Self {
|
||||
TxIdAndSize(other.0, other.1.len() as u32)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
//! Ledger primitives and cbor codecs for different Cardano eras
|
||||
|
||||
#[doc(inline)]
|
||||
pub use pallas_alonzo as alonzo;
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
//! Ouroboros protocol artifacts
|
||||
|
||||
pub mod network;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
//! Network components of the Ouroboros protocol
|
||||
|
||||
#[doc(inline)]
|
||||
pub use pallas_multiplexer as multiplexer;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue