From fe00f2820c2bc05df16080e499b24496f0456e4d Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Mon, 23 Dec 2024 20:34:30 +0100 Subject: [PATCH] chore: fix clippy lints --- cli/src/dump.rs | 8 ++++---- src/pile.rs | 2 +- src/popls/bp.rs | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cli/src/dump.rs b/cli/src/dump.rs index 1f7b5c8d..08d3e825 100644 --- a/cli/src/dump.rs +++ b/cli/src/dump.rs @@ -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( +pub fn dump_stockpile( src: &Path, dst: impl AsRef, ) -> anyhow::Result<()> where - Seal: Serialize, + Seal: RgbSeal + Serialize, Seal::CliWitness: Serialize + StrictEncode + StrictDecode, Seal::PubWitness: Serialize + StrictEncode + StrictDecode, >::PubId: @@ -121,12 +121,12 @@ where } // TODO: Auto-compute seal type out of the articles data -pub fn dump_consignment( +pub fn dump_consignment( src: &Path, dst: impl AsRef, ) -> 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, >::PubId: diff --git a/src/pile.rs b/src/pile.rs index 39609736..de35b72c 100644 --- a/src/pile.rs +++ b/src/pile.rs @@ -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); } } diff --git a/src/popls/bp.rs b/src/popls/bp.rs index b1e81a40..a7b990b5 100644 --- a/src/popls/bp.rs +++ b/src/popls/bp.rs @@ -450,6 +450,7 @@ impl< self.mound.attest(witness, iter); } + #[allow(clippy::result_large_err)] pub fn consume( &mut self, reader: &mut StrictReader,