This commit is contained in:
PSeitz
2024-11-29 16:08:21 +08:00
committed by GitHub
parent 52d4e81e70
commit 4c52499622
16 changed files with 28 additions and 29 deletions

View File

@@ -87,7 +87,7 @@ impl<W: TerminatingWrite> TerminatingWrite for BufWriter<W> {
}
}
impl<'a> TerminatingWrite for &'a mut Vec<u8> {
impl TerminatingWrite for &mut Vec<u8> {
fn terminate_ref(&mut self, _a: AntiCallToken) -> io::Result<()> {
self.flush()
}