File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,6 @@ fn transform_parameter_doc(default: StockTransformer) -> String {
146
146
- {variants}
147
147
If bool, must be True to use default transformer or False to disable.
148
148
If None, no transformation is applied"# ,
149
- default_name = default_name,
150
- variants = variants,
151
149
)
152
150
}
153
151
@@ -173,16 +171,14 @@ impl PyFeatureEvaluator {
173
171
feature_evaluator_f32 : lcf:: Transformed :: new ( fe_f32, tr_f32)
174
172
. map_err ( |err| {
175
173
Exception :: ValueError ( format ! (
176
- "feature and transformation are incompatible: {:?}" ,
177
- err
174
+ "feature and transformation are incompatible: {err:?}"
178
175
) )
179
176
} ) ?
180
177
. into ( ) ,
181
178
feature_evaluator_f64 : lcf:: Transformed :: new ( fe_f64, tr_f64)
182
179
. map_err ( |err| {
183
180
Exception :: ValueError ( format ! (
184
- "feature and transformation are incompatible: {:?}" ,
185
- err
181
+ "feature and transformation are incompatible: {err:?}"
186
182
) )
187
183
} ) ?
188
184
. into ( ) ,
Original file line number Diff line number Diff line change @@ -52,8 +52,7 @@ impl TryFrom<&str> for StockTransformer {
52
52
"sqrt" => Self :: Sqrt ,
53
53
_ => {
54
54
return Err ( Exception :: ValueError ( format ! (
55
- "Unknown stock transformer: {}" ,
56
- s
55
+ "Unknown stock transformer: {s}"
57
56
) ) ) ;
58
57
}
59
58
} )
@@ -128,8 +127,7 @@ pub(crate) fn parse_transform(
128
127
Ok ( Some ( default) )
129
128
} else {
130
129
Err ( Exception :: ValueError ( format ! (
131
- "Unknown transformation: {}" ,
132
- s
130
+ "Unknown transformation: {s}"
133
131
) ) )
134
132
}
135
133
}
You can’t perform that action at this time.
0 commit comments