@@ -137,17 +137,14 @@ impl ProviderRegistry {
137137 }
138138}
139139
140+ // Need this to share a single provider using Arc across airborne and open feature
140141struct ProviderWrapper ( Arc < SuperpositionProvider > ) ;
141142
142- // If the trait has async methods, add #[async_trait] and use async fn accordingly.
143143impl FeatureProvider for ProviderWrapper {
144- #[ doc = " The provider interface MUST define a metadata member or accessor, containing a name field" ]
145- #[ doc = " or accessor of type string, which identifies the provider implementation." ]
146144 fn metadata ( & self ) -> & ProviderMetadata {
147145 self . 0 . metadata ( )
148146 }
149147
150- #[ doc = " Resolve given `flag_key` as a bool value." ]
151148 #[ allow(
152149 mismatched_lifetime_syntaxes,
153150 clippy:: type_complexity,
@@ -173,7 +170,6 @@ impl FeatureProvider for ProviderWrapper {
173170 self . 0 . resolve_bool_value ( flag_key, evaluation_context)
174171 }
175172
176- #[ doc = " Resolve given `flag_key` as an i64 value." ]
177173 #[ allow(
178174 mismatched_lifetime_syntaxes,
179175 clippy:: type_complexity,
@@ -199,7 +195,6 @@ impl FeatureProvider for ProviderWrapper {
199195 self . 0 . resolve_int_value ( flag_key, evaluation_context)
200196 }
201197
202- #[ doc = " Resolve given `flag_key` as a f64 value." ]
203198 #[ allow(
204199 mismatched_lifetime_syntaxes,
205200 clippy:: type_complexity,
@@ -225,7 +220,6 @@ impl FeatureProvider for ProviderWrapper {
225220 self . 0 . resolve_float_value ( flag_key, evaluation_context)
226221 }
227222
228- #[ doc = " Resolve given `flag_key` as a string value." ]
229223 #[ allow(
230224 mismatched_lifetime_syntaxes,
231225 clippy:: type_complexity,
@@ -251,7 +245,6 @@ impl FeatureProvider for ProviderWrapper {
251245 self . 0 . resolve_string_value ( flag_key, evaluation_context)
252246 }
253247
254- #[ doc = " Resolve given `flag_key` as a struct value." ]
255248 #[ allow(
256249 mismatched_lifetime_syntaxes,
257250 clippy:: type_complexity,
0 commit comments