Fix building for AArch64

I broke this in !321
This commit is contained in:
bjorn3
2024-08-01 20:45:59 +02:00
parent 8f186a692f
commit f55da93b33
+3 -3
View File
@@ -27,8 +27,8 @@ impl<'a> Writer<'a> {
}
}
pub fn write(&mut self, buf: &[u8]) {
{
pub fn write(&mut self, buf: &[u8], preserve: bool) {
if preserve {
if let Some(ref mut log) = *self.log {
log.write(buf);
}
@@ -52,7 +52,7 @@ impl<'a> Writer<'a> {
impl<'a> fmt::Write for Writer<'a> {
fn write_str(&mut self, s: &str) -> Result<(), fmt::Error> {
self.write(s.as_bytes());
self.write(s.as_bytes(), reserve);
Ok(())
}
}