mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
clean up some easy warnings
This commit is contained in:
parent
b4bfaefa64
commit
3f4fea1274
4 changed files with 7 additions and 4 deletions
|
|
@ -357,8 +357,8 @@ pub fn validate_xous_img(xous_img_offset: *const u32) -> bool {
|
||||||
println!("protected_version: {}", protected_version);
|
println!("protected_version: {}", protected_version);
|
||||||
// a little insight to help debug what went wrong.
|
// a little insight to help debug what went wrong.
|
||||||
for words in image[signed_len as usize - 16 .. ].chunks(4) {
|
for words in image[signed_len as usize - 16 .. ].chunks(4) {
|
||||||
let word = u32::from_le_bytes(words.try_into().unwrap());
|
let _word = u32::from_le_bytes(words.try_into().unwrap());
|
||||||
println!("{:x}", word);
|
println!("{:x}", _word);
|
||||||
}
|
}
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
@ -369,8 +369,8 @@ pub fn validate_xous_img(xous_img_offset: *const u32) -> bool {
|
||||||
println!("protected_len: {}", protected_len);
|
println!("protected_len: {}", protected_len);
|
||||||
// a little insight to help debug what went wrong.
|
// a little insight to help debug what went wrong.
|
||||||
for words in image[signed_len as usize - 16 .. ].chunks(4) {
|
for words in image[signed_len as usize - 16 .. ].chunks(4) {
|
||||||
let word = u32::from_le_bytes(words.try_into().unwrap());
|
let _word = u32::from_le_bytes(words.try_into().unwrap());
|
||||||
println!("{:x}", word);
|
println!("{:x}", _word);
|
||||||
}
|
}
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1457,6 +1457,7 @@ impl BasisCacheEntry {
|
||||||
/// Runs through the dictionary listing in a basis and compacts them. Call when the
|
/// Runs through the dictionary listing in a basis and compacts them. Call when the
|
||||||
/// the dictionary space becomes sufficiently fragmented that accesses are becoming
|
/// the dictionary space becomes sufficiently fragmented that accesses are becoming
|
||||||
/// inefficient.
|
/// inefficient.
|
||||||
|
#[allow(dead_code)]
|
||||||
pub(crate) fn dict_compact(&self, _basis_name: Option<&str>) -> Result<()> {
|
pub(crate) fn dict_compact(&self, _basis_name: Option<&str>) -> Result<()> {
|
||||||
unimplemented!();
|
unimplemented!();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1057,6 +1057,7 @@ impl DerefMut for Dictionary {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct DictAttributes {
|
pub(crate) struct DictAttributes {
|
||||||
pub(crate) flags: DictFlags,
|
pub(crate) flags: DictFlags,
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ impl Pte {
|
||||||
}
|
}
|
||||||
VirtAddr::new(u64::from_le_bytes(full_addr)).unwrap()
|
VirtAddr::new(u64::from_le_bytes(full_addr)).unwrap()
|
||||||
}
|
}
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn flags(&self) -> PtFlags {
|
pub fn flags(&self) -> PtFlags {
|
||||||
self.flags
|
self.flags
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue