Skip to content

Commit

Permalink
Use #[deny(private_bounds)] instead of #[deny(private_in_public)].
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenlib committed Dec 1, 2023
1 parent a59f9c3 commit f7a8062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion parse-display-tests/tests/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ fn bound_by_hand_with_auto() {
assert_display(Outer(Inner(10), 20), "10,20");
}

#[deny(private_in_public)]
#[deny(private_bounds)]
#[test]
fn bound_struct_field() {
#[derive(Display)]
Expand Down
4 changes: 2 additions & 2 deletions parse-display-tests/tests/from_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ fn bound_predicate_struct() {

#[test]
fn different_bound() {
#![deny(private_in_public)]
#![deny(private_bounds)]

#[derive(Display, FromStr, PartialEq, Debug)]
#[display(bound("T : Display"))]
Expand All @@ -793,7 +793,7 @@ fn bound_type_enum() {
struct Inner<T: Default>(T);
}

#[deny(private_in_public)]
#[deny(private_bounds)]
#[test]
fn bound_struct_field() {
#[derive(FromStr)]
Expand Down

0 comments on commit f7a8062

Please sign in to comment.