about summary refs log tree commit diff
path: root/library/std/src/sys/pal/xous/stdio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/pal/xous/stdio.rs')
-rw-r--r--library/std/src/sys/pal/xous/stdio.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/xous/stdio.rs b/library/std/src/sys/pal/xous/stdio.rs
index dfd47a1775a..71736145221 100644
--- a/library/std/src/sys/pal/xous/stdio.rs
+++ b/library/std/src/sys/pal/xous/stdio.rs
@@ -87,7 +87,7 @@ pub struct PanicWriter {
 
 impl io::Write for PanicWriter {
     fn write(&mut self, s: &[u8]) -> core::result::Result<usize, io::Error> {
-        for c in s.chunks(core::mem::size_of::<usize>() * 4) {
+        for c in s.chunks(size_of::<usize>() * 4) {
             // Text is grouped into 4x `usize` words. The id is 1100 plus
             // the number of characters in this message.
             // Ignore errors since we're already panicking.