Skip to content

Commit

Permalink
fixes for 1.41.0
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Oct 18, 2022
1 parent 7577e8c commit 7f5bbdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/descriptor/checksum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl Engine {

/// Obtain the checksum of all the data thus-far fed to the engine
pub fn checksum(&mut self) -> String {
String::from_iter(self.checksum_chars())
String::from_iter(self.checksum_chars().iter().copied())
}
}

Expand All @@ -148,7 +148,7 @@ impl<'f, 'a> Formatter<'f, 'a> {
pub fn write_checksum(&mut self) -> fmt::Result {
use fmt::Write;
self.fmt.write_char('#')?;
for ch in self.eng.checksum_chars() {
for ch in self.eng.checksum_chars().iter().copied() {
self.fmt.write_char(ch)?;
}
Ok(())
Expand Down

0 comments on commit 7f5bbdf

Please sign in to comment.