aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.rs')
-rw-r--r--src/api.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api.rs b/src/api.rs
index 77a6ee6..ca92e25 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -1017,7 +1017,7 @@ fn classify_login_error(error_res: &ConnectErrorRes, code: u16) -> Error {
"" => {
// bitwarden_rs returns an empty error and error_description for
// this case, for some reason
- if error_res.error_description == "" {
+ if error_res.error_description.is_empty() {
if let Some(error_model) = error_res.error_model.as_ref() {
let message = error_model.message.as_str().to_string();
match message.as_str() {