chore: allow compliation with rust version below 1.79.0

This commit is contained in:
KyleUltimate 2025-04-25 22:01:37 +08:00
parent fe818344fe
commit 7b2ba0eb8c

View File

@ -173,8 +173,8 @@ impl ExportRenderer {
let height = self.dimensions.rows * LINE_HEIGHT; let height = self.dimensions.rows * LINE_HEIGHT;
let background_color = self.background_color.unwrap_or_else(|| "black".into()); let background_color = self.background_color.unwrap_or_else(|| "black".into());
let css_container_width = match self.output_format { let css_container_width = match self.output_format {
OutputFormat::Pdf => &format!("{width}px"), OutputFormat::Pdf => format!("{width}px"),
OutputFormat::Html => "100vw", OutputFormat::Html => "100vw".to_string(),
}; };
let css = format!( let css = format!(
r" r"