Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Aug 4, 2024
1 parent 0bec209 commit 935643a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions src/mapper/conway.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::ops::Deref;

use pallas_codec::utils::{KeepRaw, NonZeroInt};

use pallas_primitives::conway::{
Expand Down Expand Up @@ -229,9 +227,8 @@ impl EventWriter {
witnesses
.redeemer
.iter()
.map(|i| i.iter())
.flatten()
.map(|(k, v)| self.to_conway_redeemer_record(&k, &v))
.flat_map(|i| i.iter())
.map(|(k, v)| self.to_conway_redeemer_record(k, v))
.collect::<Result<_, _>>()?,
);

Expand Down
6 changes: 3 additions & 3 deletions src/sources/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ impl FromStr for PointArg {
}
}

impl ToString for PointArg {
fn to_string(&self) -> String {
format!("{},{}", self.0, self.1)
impl std::fmt::Display for PointArg {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{},{}", self.0, self.1)
}
}

Expand Down

0 comments on commit 935643a

Please sign in to comment.