diff options
Diffstat (limited to 'crates/shirabe/src/command/show_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/show_command.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crates/shirabe/src/command/show_command.rs b/crates/shirabe/src/command/show_command.rs index 7cf305d..06abec4 100644 --- a/crates/shirabe/src/command/show_command.rs +++ b/crates/shirabe/src/command/show_command.rs @@ -2264,11 +2264,12 @@ impl ShowCommand { ]; for color in self.colors.iter() { - let _style = OutputFormatterStyle::new(Some(color.as_str()), None, None); - // TODO(phase-c): OutputInterface::get_formatter returns &OutputFormatter, but - // set_style requires &mut. Resolution requires interior-mutability refactor of - // OutputFormatter wiring across symfony shim. - let _ = (output.borrow().get_formatter(), color); + let style = OutputFormatterStyle::new(Some(color.as_str()), None, None); + output + .borrow() + .get_formatter() + .borrow_mut() + .set_style(color, style); } } |
