diff options
author | Joey Sacchini <joey@sacchini.net> | 2020-10-19 12:41:46 -0400 |
---|---|---|
committer | Joey Sacchini <joey@sacchini.net> | 2020-10-19 12:41:46 -0400 |
commit | a673089adf23594c6ccd13f4bfdcaf86601148c4 (patch) | |
tree | d305a692a7ebffc2697990744a714845d8cb6366 /src/chat.rs | |
parent | f7f69d2d98a087f98ec81c3687567e02f0abed7e (diff) | |
download | mcproto-rs-a673089adf23594c6ccd13f4bfdcaf86601148c4.tar.gz mcproto-rs-a673089adf23594c6ccd13f4bfdcaf86601148c4.tar.bz2 mcproto-rs-a673089adf23594c6ccd13f4bfdcaf86601148c4.zip |
remove compat layer (don't need it), and fix some other small issues with tests/compiling
Diffstat (limited to 'src/chat.rs')
-rw-r--r-- | src/chat.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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 |