From 465a6aaa853a0c9c9ee0debfa310a9ac25608c41 Mon Sep 17 00:00:00 2001 From: Dmitry Demin Date: Mon, 3 Jun 2024 10:00:57 +0200 Subject: [PATCH] Move BuilderArb struct declaration down to try to reduce git diff --- src/builder.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 27fbe01e7..c94ae510f 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -995,16 +995,6 @@ pub mod testing { } } - /// `BuilderArb` serves as a utility structure in property-based testing, designed specifically to adapt - /// `arb_...` functions for compatibility with both variations of the Orchard protocol: Vanilla and ZSA. - /// This adaptation is necessary due to the proptest crate's limitation, which prevents the direct - /// transformation of `arb_...` functions into generic forms suitable for testing different protocol - /// flavors. - #[derive(Debug)] - pub struct BuilderArb { - phantom: std::marker::PhantomData, - } - impl BuilderArb { prop_compose! { /// Produce a random valid Orchard bundle. @@ -1072,6 +1062,16 @@ pub mod testing { BuilderArb::::arb_bundle_inputs(k).prop_map(|inputs| inputs.into_bundle::()) } } + + /// `BuilderArb` serves as a utility structure in property-based testing, designed specifically to adapt + /// `arb_...` functions for compatibility with both variations of the Orchard protocol: Vanilla and ZSA. + /// This adaptation is necessary due to the proptest crate's limitation, which prevents the direct + /// transformation of `arb_...` functions into generic forms suitable for testing different protocol + /// flavors. + #[derive(Debug)] + pub struct BuilderArb { + phantom: std::marker::PhantomData, + } } #[cfg(test)]