aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/exceptions/builtin_exceptions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-brigadier/src/exceptions/builtin_exceptions.rs')
-rwxr-xr-xazalea-brigadier/src/exceptions/builtin_exceptions.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-brigadier/src/exceptions/builtin_exceptions.rs b/azalea-brigadier/src/exceptions/builtin_exceptions.rs
index d95ee237..c3c3c900 100755
--- a/azalea-brigadier/src/exceptions/builtin_exceptions.rs
+++ b/azalea-brigadier/src/exceptions/builtin_exceptions.rs
@@ -1,6 +1,6 @@
use std::fmt;
-use crate::{message::Message, string_reader::StringReader};
+use crate::string_reader::StringReader;
use super::command_syntax_exception::CommandSyntaxException;
@@ -148,12 +148,12 @@ impl fmt::Debug for BuiltInExceptions {
impl BuiltInExceptions {
pub fn create(self) -> CommandSyntaxException {
- let message = Message::from(format!("{self:?}"));
+ let message = format!("{self:?}");
CommandSyntaxException::create(self, message)
}
pub fn create_with_context(self, reader: &StringReader) -> CommandSyntaxException {
- let message = Message::from(format!("{self:?}"));
+ let message = format!("{self:?}");
CommandSyntaxException::new(self, message, reader.string(), reader.cursor())
}
}