aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/console/html_output_formatter.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-19 00:10:22 +0900
committernsfisis <nsfisis@gmail.com>2026-05-19 00:11:03 +0900
commitc839244d8d09f3036ebfee8eef7eb6b147e593ab (patch)
treefe48c94f2c2e62468beef5ff1a8f3cff6adeef4f /crates/shirabe/src/console/html_output_formatter.rs
parent48839250146b217e2756ed3c0e624fd341b54d6c (diff)
downloadphp-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.gz
php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.tar.zst
php-shirabe-c839244d8d09f3036ebfee8eef7eb6b147e593ab.zip
fix(compile): fix various compile errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/console/html_output_formatter.rs')
-rw-r--r--crates/shirabe/src/console/html_output_formatter.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/shirabe/src/console/html_output_formatter.rs b/crates/shirabe/src/console/html_output_formatter.rs
index a69b4c6..c7be6ee 100644
--- a/crates/shirabe/src/console/html_output_formatter.rs
+++ b/crates/shirabe/src/console/html_output_formatter.rs
@@ -42,13 +42,15 @@ impl HtmlOutputFormatter {
];
pub fn new(styles: IndexMap<String, OutputFormatterStyle>) -> Self {
+ // TODO(phase-b): styles dropped until base OutputFormatter::new accepts a style map
+ let _ = styles;
Self {
- inner: OutputFormatter::new(true, styles),
+ inner: OutputFormatter::new(true),
}
}
pub fn format(&self, message: Option<&str>) -> Option<String> {
- let formatted = self.inner.format(message)?;
+ let formatted = self.inner.format(message.unwrap_or(""));
let clear_escape_codes = "(?:39|49|0|22|24|25|27|28)";
let pattern = format!(