Skip to content

Commit

Permalink
Fix cargo test --no-default-features
Browse files Browse the repository at this point in the history
The suggestion is not given when the `suggestions` Cargo feature is disabled.
  • Loading branch information
mgeisler authored and TedDriggs committed Apr 11, 2024
1 parent 3e240a6 commit ce481a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/flatten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ fn do_not_suggest_invalid_alts() {
}

#[test]
#[cfg(features = "suggestions")]
fn suggest_valid_parent_alts() {
let errors = Outer::from_derive_input(&parse_quote! {
#[v(first = "Hello", bladt = false, last = "World", parent(first = "Hi", last = "Earth"))]
Expand Down

0 comments on commit ce481a9

Please sign in to comment.