diff options
| author | mat <github@matdoes.dev> | 2022-04-26 19:38:07 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-26 19:38:07 -0500 |
| commit | 9c69d7d5f2f704b1de37e1a102bf4390cdd879a5 (patch) | |
| tree | 5bef94cbfc34fca7045f220f226c581757f3953c /azalea-core/src | |
| parent | dd24110019c0ded21e064b2273acc326173c84f5 (diff) | |
| download | azalea-drasl-9c69d7d5f2f704b1de37e1a102bf4390cdd879a5.tar.xz | |
finish update recipes packet implementation
Diffstat (limited to 'azalea-core/src')
| -rwxr-xr-x | azalea-core/src/resource_location.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/azalea-core/src/resource_location.rs b/azalea-core/src/resource_location.rs index 7e28a2a2..cdf8f381 100755 --- a/azalea-core/src/resource_location.rs +++ b/azalea-core/src/resource_location.rs @@ -1,6 +1,6 @@ //! A resource, like minecraft:stone -#[derive(Hash, Clone, Debug, PartialEq, Eq)] +#[derive(Hash, Clone, PartialEq, Eq)] pub struct ResourceLocation { pub namespace: String, pub path: String, @@ -36,6 +36,11 @@ impl std::fmt::Display for ResourceLocation { write!(f, "{}:{}", self.namespace, self.path) } } +impl std::fmt::Debug for ResourceLocation { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}:{}", self.namespace, self.path) + } +} #[cfg(test)] mod tests { |
