Skip to content

Commit 84178cd

Browse files
authored
Merge pull request #538 from light-curve/clippy1.88
Clippy 0.1.88 fixes
2 parents a190d64 + 91ca836 commit 84178cd

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

light-curve/src/features.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ fn transform_parameter_doc(default: StockTransformer) -> String {
146146
- {variants}
147147
If bool, must be True to use default transformer or False to disable.
148148
If None, no transformation is applied"#,
149-
default_name = default_name,
150-
variants = variants,
151149
)
152150
}
153151

@@ -173,16 +171,14 @@ impl PyFeatureEvaluator {
173171
feature_evaluator_f32: lcf::Transformed::new(fe_f32, tr_f32)
174172
.map_err(|err| {
175173
Exception::ValueError(format!(
176-
"feature and transformation are incompatible: {:?}",
177-
err
174+
"feature and transformation are incompatible: {err:?}"
178175
))
179176
})?
180177
.into(),
181178
feature_evaluator_f64: lcf::Transformed::new(fe_f64, tr_f64)
182179
.map_err(|err| {
183180
Exception::ValueError(format!(
184-
"feature and transformation are incompatible: {:?}",
185-
err
181+
"feature and transformation are incompatible: {err:?}"
186182
))
187183
})?
188184
.into(),

light-curve/src/transform.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ impl TryFrom<&str> for StockTransformer {
5252
"sqrt" => Self::Sqrt,
5353
_ => {
5454
return Err(Exception::ValueError(format!(
55-
"Unknown stock transformer: {}",
56-
s
55+
"Unknown stock transformer: {s}"
5756
)));
5857
}
5958
})
@@ -128,8 +127,7 @@ pub(crate) fn parse_transform(
128127
Ok(Some(default))
129128
} else {
130129
Err(Exception::ValueError(format!(
131-
"Unknown transformation: {}",
132-
s
130+
"Unknown transformation: {s}"
133131
)))
134132
}
135133
}

0 commit comments

Comments
 (0)