Skip to content

Commit f7f1284

Browse files
committed
Cosmetic changes to VariablesFactor
Signed-off-by: Ryan Levick <[email protected]>
1 parent 4f392b0 commit f7f1284

File tree

1 file changed

+9
-1
lines changed
  • crates/factor-variables/src

1 file changed

+9
-1
lines changed

crates/factor-variables/src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ pub struct VariablesFactor {
1717
_priv: (),
1818
}
1919

20+
impl VariablesFactor {
21+
/// Creates a new `VariablesFactor`.
22+
pub fn new() -> Self {
23+
Default::default()
24+
}
25+
}
26+
2027
impl Factor for VariablesFactor {
2128
type RuntimeConfig = RuntimeConfig;
2229
type AppState = AppState;
@@ -43,7 +50,8 @@ impl Factor for VariablesFactor {
4350
)?;
4451
}
4552

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 {
4755
expression_resolver.add_provider(provider);
4856
}
4957

0 commit comments

Comments
 (0)