style: better variable name

This commit is contained in:
Filip Bachul 2024-11-18 20:23:23 +01:00
parent 754cb8e3f2
commit 8798e9a538

View File

@ -36,10 +36,10 @@ impl<'de> Deserialize<'de> for StarshipConditionalStyleOperator {
}
impl StarshipConditionalStyleOperator {
fn invoke(&self, left_hand_side: Option<String>, right_hand_side: Option<String>) -> bool {
fn invoke(&self, left_arm: Option<String>, right_arm: Option<String>) -> bool {
match self {
StarshipConditionalStyleOperator::Equal => left_hand_side == right_hand_side,
StarshipConditionalStyleOperator::Exists => left_hand_side.is_some(),
StarshipConditionalStyleOperator::Equal => left_arm == right_arm,
StarshipConditionalStyleOperator::Exists => left_arm.is_some(),
}
}
}