diff options
| author | mat <git@matdoes.dev> | 2024-10-26 05:29:26 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-10-26 05:29:26 +0000 |
| commit | 6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f (patch) | |
| tree | 3b65d2984a0cffbe5acb3d44d7e3b8b145c32f95 /azalea-brigadier/src/suggestion | |
| parent | b762575db61cf775d603e11eb2bd27ae13bdc4e9 (diff) | |
| download | azalea-drasl-6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f.tar.xz | |
group imports with rustfmt
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 { |
