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.
1 parent 4f392b0 commit f7f1284Copy full SHA for f7f1284
crates/factor-variables/src/lib.rs
@@ -17,6 +17,13 @@ pub struct VariablesFactor {
17
_priv: (),
18
}
19
20
+impl VariablesFactor {
21
+ /// Creates a new `VariablesFactor`.
22
+ pub fn new() -> Self {
23
+ Default::default()
24
+ }
25
+}
26
+
27
impl Factor for VariablesFactor {
28
type RuntimeConfig = RuntimeConfig;
29
type AppState = AppState;
@@ -43,7 +50,8 @@ impl Factor for VariablesFactor {
43
50
)?;
44
51
45
52
46
- for provider in ctx.take_runtime_config().unwrap_or_default() {
53
+ let providers = ctx.take_runtime_config().unwrap_or_default();
54
+ for provider in providers {
47
55
expression_resolver.add_provider(provider);
48
56
49
57
0 commit comments