From a673089adf23594c6ccd13f4bfdcaf86601148c4 Mon Sep 17 00:00:00 2001 From: Joey Sacchini Date: Mon, 19 Oct 2020 12:41:46 -0400 Subject: remove compat layer (don't need it), and fix some other small issues with tests/compiling --- src/chat.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/chat.rs') diff --git a/src/chat.rs b/src/chat.rs index d00e9f1..77087da 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -1052,7 +1052,7 @@ pub mod tests { text: String::default(), base: { let mut b = BaseComponent::default(); - b.extra = vec!( + b.extra = alloc::vec!( Chat::Text(TextComponent{ text: "this is red, and ".to_owned(), base: { @@ -1081,6 +1081,7 @@ pub mod tests { let traditional = out.to_traditional().expect("is text"); assert_eq!(traditional.as_str(), "§cthis is red, and §rthis is §e§lyellow"); + #[cfg(feature="std")] println!("{}", serde_json::to_string_pretty(&out).expect("should serialize fine")); } } \ No newline at end of file -- cgit