diff options
| author | mat <github@matdoes.dev> | 2021-12-10 21:56:57 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-10 21:56:57 +0000 |
| commit | 2ceaea5148d7005457de54fdcd2eff0308be2aca (patch) | |
| tree | 27f5e62a725866640f97c5480b606124090de2b8 /minecraft-chat/src/component.rs | |
| parent | e4460661c672c5716d7145949054cf56b0f91c64 (diff) | |
| download | azalea-drasl-2ceaea5148d7005457de54fdcd2eff0308be2aca.tar.xz | |
remove useless function argument in to_ansi
Diffstat (limited to 'minecraft-chat/src/component.rs')
| -rw-r--r-- | minecraft-chat/src/component.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/minecraft-chat/src/component.rs b/minecraft-chat/src/component.rs index 543b73eb..39687ed5 100644 --- a/minecraft-chat/src/component.rs +++ b/minecraft-chat/src/component.rs @@ -195,8 +195,8 @@ impl Component { .for_each(|s| Component::visit(s, f)); } - /// Convert this component into an ansi string, using parent_style as the running style. - pub fn to_ansi(&self, _: Option<()>) -> String { + /// Convert this component into an ansi string + pub fn to_ansi(&self) -> String { // this contains the final string will all the ansi escape codes let mut built_string = String::new(); // this style will update as we visit components |
