diff options
Diffstat (limited to 'azalea-chat/src/text_component.rs')
| -rwxr-xr-x | azalea-chat/src/text_component.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/azalea-chat/src/text_component.rs b/azalea-chat/src/text_component.rs index 6f95840d..d3418ad8 100755 --- a/azalea-chat/src/text_component.rs +++ b/azalea-chat/src/text_component.rs @@ -1,7 +1,9 @@ -use crate::{base_component::BaseComponent, style::ChatFormatting, FormattedText}; -use serde::{ser::SerializeMap, Serialize, Serializer, __private::ser::FlatMapSerializer}; use std::fmt::Display; +use serde::{ser::SerializeMap, Serialize, Serializer, __private::ser::FlatMapSerializer}; + +use crate::{base_component::BaseComponent, style::ChatFormatting, FormattedText}; + /// A component that contains text that's the same in all locales. #[derive(Clone, Debug, Default, PartialEq, Eq, Hash)] pub struct TextComponent { @@ -140,9 +142,8 @@ impl Display for TextComponent { #[cfg(test)] mod tests { - use crate::style::Ansi; - use super::*; + use crate::style::Ansi; #[test] fn test_hypixel_motd() { |
