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,