Add rust lint CI job. (#9)
All checks were successful
Check / Check Rust (push) Successful in 20s
All checks were successful
Check / Check Rust (push) Successful in 20s
Additionally fix the many lint errors that are occurring. (or disable them). Reviewed-on: #9 Co-authored-by: Drew Galbraith <drew@tiramisu.one> Co-committed-by: Drew Galbraith <drew@tiramisu.one>
This commit is contained in:
parent
311755c812
commit
1a48911745
30 changed files with 177 additions and 108 deletions
|
|
@ -1,5 +1,4 @@
|
|||
use crate::cap::Capability;
|
||||
use crate::debug;
|
||||
use crate::init;
|
||||
use crate::syscall;
|
||||
use crate::zion::ZError;
|
||||
|
|
@ -237,7 +236,7 @@ fn load_program_segment(
|
|||
let page_offset = prog_header.vaddr & 0xFFF;
|
||||
let mem_size = page_offset + prog_header.mem_size;
|
||||
|
||||
let mem_object = crate::mem::MemoryRegion::new(mem_size)?;
|
||||
let mut mem_object = crate::mem::MemoryRegion::new(mem_size)?;
|
||||
|
||||
for i in mem_object.mut_slice() {
|
||||
*i = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue