From 4cd5ce97aae09961731e195b381a2aa4cb1870b1 Mon Sep 17 00:00:00 2001 From: Thomas Svendal Date: Wed, 28 Jan 2026 10:35:14 +0100 Subject: [PATCH] Updated Codespan-reporting to 0.13 --- Cargo.toml | 2 +- src/compose/error.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4bfc3b3..a890dd4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ naga = { version = "28", features = ["wgsl-in", "wgsl-out", "termcolor"] } tracing = "0.1" regex = "1.8" thiserror = "2.0" -codespan-reporting = "0.12" +codespan-reporting = "0.13" data-encoding = "2.3.2" rustc-hash = "1.1" unicode-ident = "1" diff --git a/src/compose/error.rs b/src/compose/error.rs index 0640845..cc11e6e 100644 --- a/src/compose/error.rs +++ b/src/compose/error.rs @@ -292,7 +292,7 @@ impl ComposerError { &mut no_color_writer }; - term::emit(writer, &config, &files, &diagnostic).expect("cannot write error"); + term::emit_to_io_write(writer, &config, &files, &diagnostic).expect("cannot write error"); String::from_utf8_lossy(&msg).into_owned() }