Skip to content

Commit 726ad0c

Browse files
committed
Remove unnecessary complication from enum test
1 parent e6ffb0b commit 726ad0c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

samples/branching/match_enum/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ fn get_bar() -> Bar {
2323

2424
enum AnotherBar {
2525
Third,
26-
Fourth { x: Box<AnotherBar>, y: i64 },
26+
Fourth { x: Bar, y: i64 },
2727
}
2828

2929
fn get_another_bar() -> AnotherBar {
3030
AnotherBar::Fourth {
31-
x: Box::new(AnotherBar::Third),
31+
x: Bar::First,
3232
y: 15,
3333
}
3434
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
repos
12
with_shared_dep

0 commit comments

Comments
 (0)