mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 22:50:19 +00:00
fix: format code
This commit is contained in:
parent
c97d7f263a
commit
9731588e2d
1 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue