Skip to content

Commit 76efc6b

Browse files
Update derive_more dev-dependency from 0.99 to 2.0
1 parent 590a76d commit 76efc6b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ iter = []
2121
[dev-dependencies]
2222
assert-dbg = { path = "assert-dbg" }
2323
collection_literals = "1.0.1"
24-
derive_more = "0.99.17"
24+
derive_more = { version = "2.0.0", features = ["display"] }
2525
proptest = "1.1.0"
2626
proptest-derive = "0.6.0"
2727
quote = "1.0.23"

tests/test.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ use quote::{quote, ToTokens};
1515
#[derive(Debug, Arbitrary, Display, Clone)]
1616
#[allow(non_camel_case_types)]
1717
enum Alignment {
18-
#[display(fmt = "<")]
18+
#[display("<")]
1919
Left,
20-
#[display(fmt = "^")]
20+
#[display("^")]
2121
Center,
22-
#[display(fmt = ">")]
22+
#[display(">")]
2323
Right,
2424
}
2525

2626
#[derive(Debug, Default, Arbitrary, Display, Clone)]
2727
#[allow(non_camel_case_types)]
2828
enum Trait {
2929
#[default]
30-
#[display(fmt = "")]
30+
#[display("")]
3131
Display,
32-
#[display(fmt = "?")]
32+
#[display("?")]
3333
Question,
34-
#[display(fmt = "x?")]
34+
#[display("x?")]
3535
xQuestion,
36-
#[display(fmt = "X?")]
36+
#[display("X?")]
3737
XQuestion,
3838
x,
3939
X,
@@ -46,12 +46,12 @@ enum Trait {
4646

4747
#[derive(Debug, Default, Arbitrary, Display)]
4848
enum Sign {
49-
#[display(fmt = "+")]
49+
#[display("+")]
5050
Plus,
51-
#[display(fmt = "-")]
51+
#[display("-")]
5252
Minus,
5353
#[default]
54-
#[display(fmt = "")]
54+
#[display("")]
5555
None,
5656
}
5757

0 commit comments

Comments
 (0)