Skip to content

Commit

Permalink
Fix rust formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Apr 29, 2024
1 parent 724c90e commit 893159e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions glide-core/src/client/value_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,13 @@ fn convert_lolwut_string(data: &str) -> String {
///
/// `array` is an array of values.
/// `element_type` is the type that the array elements should be converted to.
fn convert_array_elements(array: Vec<Value>, element_type: ExpectedReturnType) -> RedisResult<Value> {
fn convert_array_elements(
array: Vec<Value>,
element_type: ExpectedReturnType,
) -> RedisResult<Value> {
let converted_array = array
.iter()
.map(|v| {
convert_to_expected_type(v.clone(), Some(element_type))
.unwrap()
})
.map(|v| convert_to_expected_type(v.clone(), Some(element_type)).unwrap())
.collect();
Ok(Value::Array(converted_array))
}
Expand Down

0 comments on commit 893159e

Please sign in to comment.