We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
matches!
1 parent 9e37c1e commit 93130c0Copy full SHA for 93130c0
tests/source/issue_5709.rs
@@ -0,0 +1,9 @@
1
+// rustfmt-version: Two
2
+
3
+fn is_something(foo: Foo, bar: Bar) -> bool {
4
+ matches!((legacy_required_finality, signature_weight),
5
+ | (LegacyRequiredFinality::Any, Insufficient | Weak | Strict)
6
+ | (LegacyRequiredFinality::Weak, Weak | Strict)
7
+ | (LegacyRequiredFinality::Strict, Strict)
8
+ )
9
+}
tests/target/issue_5709.rs
@@ -0,0 +1,10 @@
+ matches!(
+ (legacy_required_finality, signature_weight),
+ (LegacyRequiredFinality::Any, Insufficient | Weak | Strict)
10
0 commit comments