fix: format code

This commit is contained in:
YuKun Liu 2022-07-09 22:23:54 +08:00
parent c97d7f263a
commit 9731588e2d

View file

@ -349,7 +349,9 @@ fn prettier_build(mut cmd: Command) -> anyhow::Result<Vec<Diagnostic>> {
let message = msg.message;
match message.level {
cargo_metadata::diagnostic::DiagnosticLevel::Error => {
return Err(anyhow::anyhow!(message.rendered.unwrap_or("Unknown".into())));
return Err(anyhow::anyhow!(message
.rendered
.unwrap_or("Unknown".into())));
}
cargo_metadata::diagnostic::DiagnosticLevel::Warning => {
warning_messages.push(message.clone());