chore: Fix formatting / linting issues

This commit is contained in:
Santiago Carmuega 2022-01-02 08:04:01 -03:00
parent 0535a7334a
commit 5dfda0cc0b
7 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,5 @@
//! Ledger primitives and cbor codec for the Alonzo era
mod framework;
mod model;
mod utils;

View file

@ -1,4 +1,4 @@
use std::{fmt::Debug, marker::PhantomData};
use std::fmt::Debug;
use log::{debug, log_enabled, trace};

View file

@ -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,

View file

@ -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)
}
}

View file

@ -1,2 +1,4 @@
//! Ledger primitives and cbor codecs for different Cardano eras
#[doc(inline)]
pub use pallas_alonzo as alonzo;

View file

@ -1 +1,3 @@
//! Ouroboros protocol artifacts
pub mod network;

View file

@ -1,3 +1,5 @@
//! Network components of the Ouroboros protocol
#[doc(inline)]
pub use pallas_multiplexer as multiplexer;