From 9941feaf8a1a8eb7de1e5a4639032b11ad449c2a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 2 Dec 2020 02:59:06 -0500 Subject: 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 --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/error.rs') 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 { -- cgit v1.2.3-54-g00ecf