From 4626bd45cd8b3875a0ee006cf8e2c7cfb9f8cbcc Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 9 Jan 2022 14:58:14 -0600 Subject: fix a couple tests --- azalea-brigadier/src/exceptions/command_syntax_exception.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'azalea-brigadier/src/exceptions/command_syntax_exception.rs') 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()) + } +} -- cgit v1.2.3