Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Jul 20, 2024
1 parent 5d73864 commit e307908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: shared format _variant placeholder cannot contain format specifiers
error: shared format `_variant` placeholder cannot contain format specifiers
--> tests/compile_fail/display/shared_format_variant_spec.rs:2:11
|
2 | #[display("Stuff({_variant:?})")]
Expand Down
2 changes: 1 addition & 1 deletion tests/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ mod enums {
use super::*;

#[derive(Display)]
#[display("{} Variant: {} {}", _variant)]
#[display("{_variant} Variant: {_variant} {_variant}")]
enum Enum {
#[display("A {_0}")]
A(i32),
Expand Down

0 comments on commit e307908

Please sign in to comment.