summaryrefslogtreecommitdiff
path: root/kernel/src/io/panic_screen.rs
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/io/panic_screen.rs')
-rw-r--r--kernel/src/io/panic_screen.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/src/io/panic_screen.rs b/kernel/src/io/panic_screen.rs
index 7b81676..35fe625 100644
--- a/kernel/src/io/panic_screen.rs
+++ b/kernel/src/io/panic_screen.rs
@@ -23,7 +23,8 @@ impl<'a> core::fmt::Write for TextBuffer<'a> {
} else {
let s = s.as_bytes();
(&mut self.dst[self.len..self.len + s.len()]).clone_from_slice(s);
- Ok(self.len += s.len())
+ self.len += s.len();
+ Ok(())
}
}
}