Don't show notifications on failed rustfmt calls

This commit is contained in:
Laurențiu Nicola 2025-06-25 15:51:31 +03:00
parent 70cbf8332a
commit 4c07f8b25a

View File

@ -2433,17 +2433,14 @@ fn run_rustfmt(
} }
_ => { _ => {
// Something else happened - e.g. `rustfmt` is missing or caught a signal // Something else happened - e.g. `rustfmt` is missing or caught a signal
Err(LspError::new( tracing::error!(
-32900, ?command,
format!( %output.status,
r#"rustfmt exited with: %captured_stdout,
Status: {} %captured_stderr,
stdout: {captured_stdout} "rustfmt failed"
stderr: {captured_stderr}"#, );
output.status, Ok(None)
),
)
.into())
} }
}; };
} }