Skip to content

Commit 5dcbf40

Browse files
committed
so, clippy actually produces code which does not conform with the fmt. facepalm. Fmt again.
1 parent 8f277bf commit 5dcbf40

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/ensemble/generic_ensemble.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,10 @@ where
424424
/// ```
425425
pub fn set_weight(&mut self, name: &str, weight: f64) -> Result<(), Failed> {
426426
if matches!(self.strategy, VotingStrategy::Weighted)
427-
&& (!weight.is_finite() || weight < 0.0) {
428-
return Err(Failed::input("Weight must be finite and non-negative"));
429-
}
427+
&& (!weight.is_finite() || weight < 0.0)
428+
{
429+
return Err(Failed::input("Weight must be finite and non-negative"));
430+
}
430431
let member = self
431432
.members
432433
.get_mut(name)

0 commit comments

Comments
 (0)