mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
xous: get rid of most warnings
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
f361bd6e7e
commit
c349345ce8
2 changed files with 3 additions and 5 deletions
|
|
@ -1,5 +1,3 @@
|
|||
use core::sync::atomic::AtomicU32;
|
||||
|
||||
#[cfg(not(target_os = "none"))]
|
||||
pub fn id() -> u32 {
|
||||
std::process::id()
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use crate::{CID, Error, MemoryMessage, MemoryFlags, MemoryRange, MemorySize, Message, Result, map_memory, send_message, unmap_memory};
|
||||
use crate::{CID, Error, MemoryMessage, Result};
|
||||
|
||||
use rkyv::Write;
|
||||
use rkyv::Unarchive;
|
||||
|
|
@ -35,7 +35,7 @@ impl<const N: usize> String<N> {
|
|||
pub fn from_message(
|
||||
message: & mut MemoryMessage,
|
||||
) -> core::result::Result<String<N>, core::str::Utf8Error> {
|
||||
let mut buf = unsafe{ crate::XousBuffer::from_memory_message(message) };
|
||||
let buf = unsafe{ crate::XousBuffer::from_memory_message(message) };
|
||||
let bytes = Pin::new(buf.as_ref());
|
||||
let value = unsafe {
|
||||
archived_value::<String<N>>(&bytes, message.id as usize)
|
||||
|
|
@ -162,4 +162,4 @@ impl<const N: usize> rkyv::Unarchive<String<N>> for ArchivedString {
|
|||
s.len = self.len;
|
||||
s
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue