mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
cleanup chat-test
This commit is contained in:
parent
1ec66137be
commit
3ce6baa202
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ mod api;
|
|||
mod tests;
|
||||
|
||||
use api::*;
|
||||
use chat::{Chat, Event, POST_TEXT_MAX};
|
||||
use chat::{Chat, Event};
|
||||
use num_traits::*;
|
||||
use xous_ipc::Buffer;
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ fn wrapped_main() -> ! {
|
|||
}
|
||||
Some(ChatTestOp::Post) => {
|
||||
let buffer = unsafe { Buffer::from_memory_message(msg.body.memory_message().unwrap()) };
|
||||
let s = buffer.to_original::<String<{ POST_TEXT_MAX }>, _>().unwrap();
|
||||
let s = buffer.to_original::<String, _>().unwrap();
|
||||
if s.len() > 0 {
|
||||
// capture input instead of calling here, so message can drop and calling server is
|
||||
// released
|
||||
|
|
|
|||
Loading…
Reference in a new issue