diff options
Diffstat (limited to 'azalea-chat/src/component.rs')
| -rwxr-xr-x | azalea-chat/src/component.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs index 4df3796f..e4c0ab72 100755 --- a/azalea-chat/src/component.rs +++ b/azalea-chat/src/component.rs @@ -289,3 +289,9 @@ impl Display for Component { } } } + +impl Default for Component { + fn default() -> Self { + Component::Text(TextComponent::default()) + } +} |
