Skip to content

Commit 0566195

Browse files
committed
docs
1 parent 8789a8c commit 0566195

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

airborne_server/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async fn main() -> std::io::Result<()> {
118118
.ok()
119119
.and_then(|v| v.parse::<bool>().ok())
120120
.unwrap_or_default();
121-
121+
122122
let clear_unused_providers = std::env::var("SUPERPOSITION_CLEAR_UNUSED_PROVIDER")
123123
.ok()
124124
.and_then(|v| v.parse::<bool>().ok())

airborne_server/src/utils/superposition_provider.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,14 @@ impl ProviderRegistry {
137137
}
138138
}
139139

140+
// Need this to share a single provider using Arc across airborne and open feature
140141
struct ProviderWrapper(Arc<SuperpositionProvider>);
141142

142-
// If the trait has async methods, add #[async_trait] and use async fn accordingly.
143143
impl 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

Comments
 (0)