Skip to content

Commit

Permalink
fix(lints): Improve error message on bad data
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 29, 2023
1 parent 1c578b1 commit 6568e2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cargo/util/toml/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3499,7 +3499,7 @@ impl fmt::Debug for PathValue {
}

#[derive(Deserialize, Serialize, Debug, Clone)]
#[serde(expecting = "a map")]
#[serde(expecting = "a lints table")]
pub struct MaybeWorkspaceLints {
#[serde(skip_serializing_if = "is_false")]
#[serde(deserialize_with = "bool_no_false", default)]
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ fn malformed_on_nightly() {
error: failed to parse manifest[..]
Caused by:
invalid type: integer `20`, expected a map
invalid type: integer `20`, expected a lints table
",
)
.run();
Expand Down

0 comments on commit 6568e2c

Please sign in to comment.