1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-24 02:16:19 +04:00

Get rid of spurious mut

This commit is contained in:
Stephen Marz 2019-10-07 16:33:07 -04:00
parent 2937d95f71
commit 0fe8e027d3

View File

@ -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::<u8>::new(100);
let k: u32 = Box::new(100);
println!("Boxed value = {}", *k);
// The following comes from the Rust documentation:
// some bytes, in a vector