1 2 3 4 5 6 7 8 9 10
use std::path::Path; use super::types::Summary; /// Write summary.json to file. pub fn write_summary(summary: &Summary, out: &Path) -> anyhow::Result<()> { let json = serde_json::to_string_pretty(summary)?; std::fs::write(out, json)?; Ok(()) }