diff options
Diffstat (limited to 'crates/shirabe-external-packages')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style_stack.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style_stack.rs b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style_stack.rs index 5682b644..2464c028 100644 --- a/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style_stack.rs +++ b/crates/shirabe-external-packages/src/symfony/console/formatter/output_formatter_style_stack.rs @@ -36,10 +36,7 @@ impl OutputFormatterStyleStack { ) -> anyhow::Result<Result<Box<dyn OutputFormatterStyleInterface>, InvalidArgumentException>> { if self.styles.is_empty() { - // Returns the shared empty style; ownership cannot be expressed without Clone on the - // trait object. - // TODO(human-review): empty-style branch needs a Clone/Rc strategy in Phase C. - return Ok(Ok(todo!())); + return Ok(Ok(self.empty_style.clone_box())); } let style = match style.as_mut() { |
