From 0fe8e027d31eee62901fae5bcf79b8670fdad4e3 Mon Sep 17 00:00:00 2001 From: Stephen Marz Date: Mon, 7 Oct 2019 16:33:07 -0400 Subject: [PATCH] Get rid of spurious mut --- risc_v/ch3/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/risc_v/ch3/src/lib.rs b/risc_v/ch3/src/lib.rs index b342d5a..645c975 100755 --- a/risc_v/ch3/src/lib.rs +++ b/risc_v/ch3/src/lib.rs @@ -107,7 +107,7 @@ fn kmain() { println!("Memory = 0x{:x}", m); { // We have the global allocator, so let's see if that works! - let k = Box::::new(100); + let k: u32 = Box::new(100); println!("Boxed value = {}", *k); // The following comes from the Rust documentation: // some bytes, in a vector