Skip to content

Commit e456154

Browse files
liorsvebarshaul
andauthored
Update glide-core/src/client/mod.rs
Co-authored-by: Bar Shaul <[email protected]> Signed-off-by: Lior Sventitzky <[email protected]>
1 parent 44ae581 commit e456154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glide-core/src/client/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ impl Client {
540540
ClientWrapper::Cluster { client } => match client.get_username().await {
541541
Ok(Value::SimpleString(username)) => Some(username),
542542
Ok(Value::Nil) => None,
543-
Ok(other) => panic!("Expected SimpleString, got: {:?}", other),
543+
Ok(other) => unreachable!("Expected SimpleString or Nil, got: {:?}", other),
544544
Err(e) => panic!("Got error trying to get username: {:?}", e),
545545
},
546546
ClientWrapper::Standalone(client) => client.get_username(),

0 commit comments

Comments
 (0)