Skip to content

Commit

Permalink
chore: fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 23, 2024
1 parent eba6ac8 commit fe00f28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cli/src/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ use serde::{Deserialize, Serialize};
use strict_encoding::{DecodeError, StreamReader, StrictDecode, StrictEncode, StrictReader};

// TODO: Auto-compute seal type out of the articles data
pub fn dump_stockpile<Seal: RgbSeal, const CAPS: u32>(
pub fn dump_stockpile<Seal, const CAPS: u32>(
src: &Path,
dst: impl AsRef<Path>,
) -> anyhow::Result<()>
where
Seal: Serialize,
Seal: RgbSeal + Serialize,
Seal::CliWitness: Serialize + StrictEncode + StrictDecode,
Seal::PubWitness: Serialize + StrictEncode + StrictDecode,
<Seal::PubWitness as PublishedWitness<Seal>>::PubId:
Expand Down Expand Up @@ -121,12 +121,12 @@ where
}

// TODO: Auto-compute seal type out of the articles data
pub fn dump_consignment<Seal: RgbSeal, const CAPS: u32>(
pub fn dump_consignment<Seal, const CAPS: u32>(
src: &Path,
dst: impl AsRef<Path>,
) -> anyhow::Result<()>
where
Seal: Serialize,
Seal: RgbSeal + Serialize,
Seal::CliWitness: Serialize + for<'de> Deserialize<'de> + StrictEncode + StrictDecode,
Seal::PubWitness: Serialize + for<'de> Deserialize<'de> + StrictEncode + StrictDecode,
<Seal::PubWitness as PublishedWitness<Seal>>::PubId:
Expand Down
2 changes: 1 addition & 1 deletion src/pile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub trait Pile {
} else {
self.hoard_mut().append(pubid, &anchor);
}
self.cache_mut().append(pubid, &published);
self.cache_mut().append(pubid, published);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/popls/bp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ impl<
self.mound.attest(witness, iter);
}

#[allow(clippy::result_large_err)]
pub fn consume(
&mut self,
reader: &mut StrictReader<impl ReadRaw>,
Expand Down

0 comments on commit fe00f28

Please sign in to comment.