diff options
| author | mat <github@matdoes.dev> | 2022-01-09 14:58:14 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-01-09 14:58:14 -0600 |
| commit | 4626bd45cd8b3875a0ee006cf8e2c7cfb9f8cbcc (patch) | |
| tree | 37023c3379cad3eaf89e74908a9cb9c2eddb08e3 /azalea-brigadier/src/exceptions/command_syntax_exception.rs | |
| parent | 8331851d972b42b68e1fb64e2ec9faef6c02be32 (diff) | |
| download | azalea-drasl-4626bd45cd8b3875a0ee006cf8e2c7cfb9f8cbcc.tar.xz | |
fix a couple tests
Diffstat (limited to 'azalea-brigadier/src/exceptions/command_syntax_exception.rs')
| -rw-r--r-- | azalea-brigadier/src/exceptions/command_syntax_exception.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/azalea-brigadier/src/exceptions/command_syntax_exception.rs b/azalea-brigadier/src/exceptions/command_syntax_exception.rs index b9fbea45..38aa1c3a 100644 --- a/azalea-brigadier/src/exceptions/command_syntax_exception.rs +++ b/azalea-brigadier/src/exceptions/command_syntax_exception.rs @@ -1,4 +1,4 @@ -use std::{cmp, rc::Rc}; +use std::{cmp, fmt, rc::Rc}; use super::builtin_exceptions::BuiltInExceptions; use crate::message::Message; @@ -80,3 +80,9 @@ impl CommandSyntaxException { self.cursor } } + +impl fmt::Debug for CommandSyntaxException { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + write!(f, "{}", self.message()) + } +} |
