Skip to content

Commit

Permalink
Fix Rust compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Apr 23, 2024
1 parent 8656a66 commit 7d34124
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions glide-core/src/client/value_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ mod tests {
#[test]
fn convert_hrandfield() {
assert!(matches!(
expected_type_for_cmd(redis::cmd("HRANDFIELD").arg("key").arg("1").arg("withvalues"),
expected_type_for_cmd(redis::cmd("HRANDFIELD").arg("key").arg("1").arg("withvalues")),
Some(ExpectedReturnType::ArrayOfKeyValuePairs)
));

Expand All @@ -342,7 +342,7 @@ mod tests {
.unwrap();
assert_eq!(two_dimensional_array, converted_two_dimensional_array);

let empty_array = Value::Array(vec![])
let empty_array = Value::Array(vec![]);
let converted_empty_array =
convert_to_expected_type(empty_array, Some(ExpectedReturnType::ArrayOfKeyValuePairs))
.unwrap();
Expand All @@ -351,9 +351,9 @@ mod tests {
let converted_nil_value =
convert_to_expected_type(Value::Nil, Some(ExpectedReturnType::ArrayOfKeyValuePairs))
.unwrap();
assert_eq!(Value::Nil, converted_nil_value)
assert_eq!(Value::Nil, converted_nil_value);

let array_of_doubles = Value::Array(vec![Value::Double(5.5)])
let array_of_doubles = Value::Array(vec![Value::Double(5.5)]);
assert!(convert_to_expected_type(
array_of_doubles,
Some(ExpectedReturnType::ArrayOfKeyValuePairs)
Expand Down

0 comments on commit 7d34124

Please sign in to comment.