Skip to content

Commit 7f5bbdf

Browse files
committed
fixes for 1.41.0
1 parent 7577e8c commit 7f5bbdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/descriptor/checksum.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl Engine {
125125

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

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

0 commit comments

Comments
 (0)