diff --git a/Cargo.toml b/Cargo.toml index aa22519..4dae5ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ naga = { version = "29", 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() }