We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44ae581 commit e456154Copy full SHA for e456154
glide-core/src/client/mod.rs
@@ -540,7 +540,7 @@ impl Client {
540
ClientWrapper::Cluster { client } => match client.get_username().await {
541
Ok(Value::SimpleString(username)) => Some(username),
542
Ok(Value::Nil) => None,
543
- Ok(other) => panic!("Expected SimpleString, got: {:?}", other),
+ Ok(other) => unreachable!("Expected SimpleString or Nil, got: {:?}", other),
544
Err(e) => panic!("Got error trying to get username: {:?}", e),
545
},
546
ClientWrapper::Standalone(client) => client.get_username(),
0 commit comments