diff options
Diffstat (limited to 'azalea-brigadier/src/suggestion')
| -rwxr-xr-x | azalea-brigadier/src/suggestion/mod.rs | 12 | ||||
| -rwxr-xr-x | azalea-brigadier/src/suggestion/suggestions.rs | 12 | ||||
| -rwxr-xr-x | azalea-brigadier/src/suggestion/suggestions_builder.rs | 3 |
3 files changed, 15 insertions, 12 deletions
diff --git a/azalea-brigadier/src/suggestion/mod.rs b/azalea-brigadier/src/suggestion/mod.rs index fbebfe8a..753b1bc8 100755 --- a/azalea-brigadier/src/suggestion/mod.rs +++ b/azalea-brigadier/src/suggestion/mod.rs @@ -1,20 +1,22 @@ mod suggestions; mod suggestions_builder; -use crate::context::StringRange; -#[cfg(feature = "azalea-buf")] -use azalea_buf::McBufWritable; -#[cfg(feature = "azalea-buf")] -use azalea_chat::FormattedText; #[cfg(feature = "azalea-buf")] use std::io::Write; use std::{ fmt::{self, Display}, hash::Hash, }; + +#[cfg(feature = "azalea-buf")] +use azalea_buf::McBufWritable; +#[cfg(feature = "azalea-buf")] +use azalea_chat::FormattedText; pub use suggestions::Suggestions; pub use suggestions_builder::SuggestionsBuilder; +use crate::context::StringRange; + /// A suggestion given to the user for what they might want to type next. /// /// The `M` generic is the type of the tooltip, so for example a `String` or diff --git a/azalea-brigadier/src/suggestion/suggestions.rs b/azalea-brigadier/src/suggestion/suggestions.rs index 487e4233..5941aa7d 100755 --- a/azalea-brigadier/src/suggestion/suggestions.rs +++ b/azalea-brigadier/src/suggestion/suggestions.rs @@ -1,16 +1,18 @@ -use super::Suggestion; -use crate::context::StringRange; #[cfg(feature = "azalea-buf")] -use crate::suggestion::SuggestionValue; +use std::io::{Cursor, Write}; +use std::{collections::HashSet, hash::Hash}; + #[cfg(feature = "azalea-buf")] use azalea_buf::{ BufReadError, McBuf, McBufReadable, McBufVarReadable, McBufVarWritable, McBufWritable, }; #[cfg(feature = "azalea-buf")] use azalea_chat::FormattedText; + +use super::Suggestion; +use crate::context::StringRange; #[cfg(feature = "azalea-buf")] -use std::io::{Cursor, Write}; -use std::{collections::HashSet, hash::Hash}; +use crate::suggestion::SuggestionValue; #[derive(Debug, Clone, Eq, PartialEq, Hash, Default)] pub struct Suggestions { diff --git a/azalea-brigadier/src/suggestion/suggestions_builder.rs b/azalea-brigadier/src/suggestion/suggestions_builder.rs index 4e6296dd..85c8f4d8 100755 --- a/azalea-brigadier/src/suggestion/suggestions_builder.rs +++ b/azalea-brigadier/src/suggestion/suggestions_builder.rs @@ -1,8 +1,7 @@ use std::collections::HashSet; -use crate::context::StringRange; - use super::{Suggestion, SuggestionValue, Suggestions}; +use crate::context::StringRange; #[derive(PartialEq, Debug)] pub struct SuggestionsBuilder { |
