diff --git a/services/com/src/lib.rs b/services/com/src/lib.rs index 3d6c2fcbd..26a037990 100644 --- a/services/com/src/lib.rs +++ b/services/com/src/lib.rs @@ -53,7 +53,7 @@ pub fn get_ec_git_rev(cid: CID) -> Result<(u32, bool), Error> { } pub fn send_pds_line(cid: CID, s: &xous::String<512>) -> Result<(), Error> { - s.lend(cid, ComState::WFX_PDS_LINE_SET.verb as _).map( |_| ()) + s.lend(cid /*, ComState::WFX_PDS_LINE_SET.verb as _ */).map( |_| ()) // send_message(cid, api::Opcode::Wf200PdsLine(line).into()).map(|_| ()) } diff --git a/services/log-server/src/lib.rs b/services/log-server/src/lib.rs index 89f89a51f..34d696e69 100644 --- a/services/log-server/src/lib.rs +++ b/services/log-server/src/lib.rs @@ -41,7 +41,7 @@ impl XousLoggerBacking { if let Some(ref mut buf) = self.buffer { buf.clear(); write!(buf, "{} - {}", record.level(), record.args()).unwrap(); - buf.lend(self.conn, 1).unwrap(); + buf.lend(self.conn).unwrap(); } } } diff --git a/xous-rs/src/string.rs b/xous-rs/src/string.rs index f163a3c15..e373acdc2 100644 --- a/xous-rs/src/string.rs +++ b/xous-rs/src/string.rs @@ -49,12 +49,12 @@ impl String { pub fn lend( &self, connection: CID, - id: crate::MessageId, + // id: crate::MessageId, ) -> core::result::Result { let mut writer = rkyv::ArchiveBuffer::new(crate::XousBuffer::new( N )); let pos = writer.archive(self).expect("xous::String -- couldn't archive self"); - let mut xous_buffer = writer.into_inner(); + let xous_buffer = writer.into_inner(); // note that "id" is actually used as the position into the rkyv buffer xous_buffer.lend(connection, pos as u32)