aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-12-02 02:59:06 -0500
committerJesse Luehrs <doy@tozt.net>2020-12-02 02:59:06 -0500
commit9941feaf8a1a8eb7de1e5a4639032b11ad449c2a (patch)
tree783ded6376d46e7f2289d10ce4c4b0380308b6de /src/error.rs
parentb399be81bd198d1f2fca3b166132af7bf93eef86 (diff)
downloadrbw-9941feaf8a1a8eb7de1e5a4639032b11ad449c2a.tar.gz
rbw-9941feaf8a1a8eb7de1e5a4639032b11ad449c2a.zip
allow TwoFactorType to be provided as an integer or string
bitwarden-rs still provides it as an integer, but bitwarden.com now provides it as a string
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index 131d5b9..7201ce0 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -50,7 +50,7 @@ pub enum Error {
InvalidMac,
#[snafu(display("invalid two factor provider type: {}", ty))]
- InvalidTwoFactorProvider { ty: u32 },
+ InvalidTwoFactorProvider { ty: String },
#[snafu(display("failed to parse JSON"))]
JSON {