Fix a broken clippy lint

This commit is contained in:
Ashley Ruglys authored and Dzmitry Malyshau committed 2022-05-22 08:42:20 -07:00
1 parent 196c9981bc
commit 104f4dc7ec
2 files changed
+4

No files matched your search

+2
View File
@@ -647,6 +647,8 @@ impl<W: Write> Writer<W> {
}
/// Finishes writing and returns the output.
// See https://github.com/rust-lang/rust-clippy/issues/4979.
#[allow(clippy::missing_const_for_fn)]
pub fn finish(self) -> W {
self.out
}
+2
View File
@@ -1859,6 +1859,8 @@ impl<W: Write> Writer<W> {
Ok(())
}
// See https://github.com/rust-lang/rust-clippy/issues/4979.
#[allow(clippy::missing_const_for_fn)]
pub fn finish(self) -> W {
self.out
}