chore: lint code with cargo format
This commit is contained in:
@@ -30,12 +30,8 @@ fn from_condition(
|
||||
(_, Condition::Bool(_)) => return Err(FailedTo::ComposeFilter),
|
||||
// SIGNED INT
|
||||
(Comparison::Equal, Condition::SignedInt(_)) => compose_fragment("value_int", "=", i),
|
||||
(Comparison::Greater, Condition::SignedInt(_)) => {
|
||||
compose_fragment("value_int", ">", i)
|
||||
}
|
||||
(Comparison::Lesser, Condition::SignedInt(_)) => {
|
||||
compose_fragment("value_int", "<", i)
|
||||
}
|
||||
(Comparison::Greater, Condition::SignedInt(_)) => compose_fragment("value_int", ">", i),
|
||||
(Comparison::Lesser, Condition::SignedInt(_)) => compose_fragment("value_int", "<", i),
|
||||
(Comparison::GreaterOrEqual, Condition::SignedInt(_)) => {
|
||||
compose_fragment("value_int", ">=", i)
|
||||
}
|
||||
@@ -44,15 +40,9 @@ fn from_condition(
|
||||
}
|
||||
(_, Condition::SignedInt(_)) => return Err(FailedTo::ComposeFilter),
|
||||
// UNSIGNED INT
|
||||
(Comparison::Equal, Condition::UnsignedInt(_)) => {
|
||||
compose_fragment("value_uint", "=", i)
|
||||
}
|
||||
(Comparison::Greater, Condition::UnsignedInt(_)) => {
|
||||
compose_fragment("value_uint", ">", i)
|
||||
}
|
||||
(Comparison::Lesser, Condition::UnsignedInt(_)) => {
|
||||
compose_fragment("value_uint", "<", i)
|
||||
}
|
||||
(Comparison::Equal, Condition::UnsignedInt(_)) => compose_fragment("value_uint", "=", i),
|
||||
(Comparison::Greater, Condition::UnsignedInt(_)) => compose_fragment("value_uint", ">", i),
|
||||
(Comparison::Lesser, Condition::UnsignedInt(_)) => compose_fragment("value_uint", "<", i),
|
||||
(Comparison::GreaterOrEqual, Condition::UnsignedInt(_)) => {
|
||||
compose_fragment("value_uint", ">=", i)
|
||||
}
|
||||
@@ -64,12 +54,8 @@ fn from_condition(
|
||||
(Comparison::Equal, Condition::Real(_)) => compose_fragment("value_real", "=", i),
|
||||
(Comparison::Greater, Condition::Real(_)) => compose_fragment("value_real", ">", i),
|
||||
(Comparison::Lesser, Condition::Real(_)) => compose_fragment("value_real", "<", i),
|
||||
(Comparison::GreaterOrEqual, Condition::Real(_)) => {
|
||||
compose_fragment("value_real", ">=", i)
|
||||
}
|
||||
(Comparison::LesserOrEqual, Condition::Real(_)) => {
|
||||
compose_fragment("value_real", "<=", i)
|
||||
}
|
||||
(Comparison::GreaterOrEqual, Condition::Real(_)) => compose_fragment("value_real", ">=", i),
|
||||
(Comparison::LesserOrEqual, Condition::Real(_)) => compose_fragment("value_real", "<=", i),
|
||||
(_, Condition::Real(_)) => return Err(FailedTo::ComposeFilter),
|
||||
// TEXT
|
||||
(Comparison::IsExactly, Condition::Text(_)) => compose_fragment("value_text", "=", i),
|
||||
|
||||
Reference in New Issue
Block a user