Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
  • Loading branch information
acarbonetto committed Jun 3, 2024
1 parent 5e9f5ab commit 2f6cdde
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions glide-core/src/client/value_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,12 @@ pub(crate) fn expected_type_for_cmd(cmd: &Cmd) -> Option<ExpectedReturnType> {

// TODO use enum to avoid mistakes
match command.as_slice() {
b"HGETALL" | b"CONFIG GET" | b"FT.CONFIG GET" | b"HELLO" | b"XRANGE" => Some(ExpectedReturnType::Map {
key_type: &None,
value_type: &None,
}),
b"HGETALL" | b"CONFIG GET" | b"FT.CONFIG GET" | b"HELLO" | b"XRANGE" => {
Some(ExpectedReturnType::Map {
key_type: &None,
value_type: &None,
})
}
b"XREAD" => Some(ExpectedReturnType::Map {
key_type: &Some(ExpectedReturnType::BulkString),
value_type: &Some(ExpectedReturnType::Map {
Expand Down

0 comments on commit 2f6cdde

Please sign in to comment.