chore: apply same impl order (#2937)

This commit is contained in:
Matthias Seitz
2023-06-01 00:44:34 +02:00
committed by GitHub
parent 9a0aeea543
commit 10717a7cc3
11 changed files with 69 additions and 69 deletions

View File

@ -84,8 +84,6 @@ impl<'a> arbitrary::Arbitrary<'a> for Capability {
#[cfg(any(test, feature = "arbitrary"))]
impl proptest::arbitrary::Arbitrary for Capability {
type Parameters = ParamsFor<String>;
type Strategy = BoxedStrategy<Capability>;
fn arbitrary_with(args: Self::Parameters) -> Self::Strategy {
any_with::<String>(args) // TODO: what possible values?
.prop_flat_map(move |name| {
@ -94,6 +92,8 @@ impl proptest::arbitrary::Arbitrary for Capability {
})
.boxed()
}
type Strategy = BoxedStrategy<Capability>;
}
/// Represents all capabilities of a node.