From ff08bcfa180199e58668b76ac46bdc97c0598cc7 Mon Sep 17 00:00:00 2001 From: BlackDex Date: Thu, 9 Dec 2021 18:04:44 +0100 Subject: [PATCH] Updated rust stable to the latest version Changed rust version from 1.56 to 1.57. Also allowed dead_code for a new found item with the new rust version. --- Cargo.toml | 2 +- src/api/identity.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 245d96f5..a934e619 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "vaultwarden" version = "1.0.0" authors = ["Daniel GarcĂ­a "] edition = "2021" -rust-version = "1.56" +rust-version = "1.57" resolver = "2" repository = "https://github.com/dani-garcia/vaultwarden" diff --git a/src/api/identity.rs b/src/api/identity.rs index 62a276b2..bc4508a5 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -409,6 +409,7 @@ struct ConnectData { #[field(name = uncased("device_type"))] #[field(name = uncased("devicetype"))] device_type: Option, + #[allow(dead_code)] #[field(name = uncased("device_push_token"))] #[field(name = uncased("devicepushtoken"))] device_push_token: Option, // Unused; mobile device push not yet supported.