Fix a broken clippy lint

This commit is contained in:
Ashley Ruglys
2022-05-20 21:26:34 +02:00
committed by Dzmitry Malyshau
parent 196c9981bc
commit 104f4dc7ec
2 changed files with 4 additions and 0 deletions

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
}

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
}