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:
parent
2937d95f71
commit
0fe8e027d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user