From 3ce6baa202689a3a26e83f9f2fb1ca9e9e52c1c5 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 23 Sep 2024 16:41:43 +0800 Subject: [PATCH] cleanup chat-test --- apps/chat-test/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/chat-test/src/main.rs b/apps/chat-test/src/main.rs index 7d4ff55de..f0e0b754a 100644 --- a/apps/chat-test/src/main.rs +++ b/apps/chat-test/src/main.rs @@ -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::, _>().unwrap(); + let s = buffer.to_original::().unwrap(); if s.len() > 0 { // capture input instead of calling here, so message can drop and calling server is // released