mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-11 20:58:54 +00:00
Fix parsing cargo test json output by making stdout and optional field
This commit is contained in:
parent
cc016df54b
commit
04c06b4c5a
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,11 @@ pub(crate) enum TestState {
|
|||
Started,
|
||||
Ok,
|
||||
Ignored,
|
||||
Failed { stdout: String },
|
||||
Failed {
|
||||
// the stdout field is not always present depending on cargo test flags
|
||||
#[serde(skip_serializing_if = "String::is_empty", default)]
|
||||
stdout: String,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
|
Loading…
Reference in a new issue