Merge pull request 'Update Rust crate tokio to 1.35.1' (#27) from renovate/tokio-1.x into master
Reviewed-on: #27
This commit is contained in:
commit
1f64c28d5a
2 changed files with 5 additions and 5 deletions
|
@ -12,7 +12,7 @@ reqwest = "0.11.23"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
futures = "0.3.30"
|
futures = "0.3.30"
|
||||||
tokio = { version = "1.35.0", features=["macros", "rt-multi-thread"] }
|
tokio = { version = "1.35.1", features=["macros", "rt-multi-thread"] }
|
||||||
tibber = "0.5.0"
|
tibber = "0.5.0"
|
||||||
chrono = "0.4.31"
|
chrono = "0.4.31"
|
||||||
actix-web = "4.4.1"
|
actix-web = "4.4.1"
|
||||||
|
|
|
@ -11,10 +11,10 @@ enum LoginInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LoginInfo {
|
impl LoginInfo {
|
||||||
const MIDEA_KEY_EMAIL: &str = "midea_cloud_mail";
|
const MIDEA_KEY_EMAIL: &'static str = "midea_cloud_mail";
|
||||||
const MIDEA_KEY_PW: &str = "midea_cloud_pw";
|
const MIDEA_KEY_PW: &'static str = "midea_cloud_pw";
|
||||||
const MIDEA_KEY_TOKEN: &str = "midea_token";
|
const MIDEA_KEY_TOKEN: &'static str = "midea_token";
|
||||||
const MIDEA_KEY_KEY: &str = "midea_key";
|
const MIDEA_KEY_KEY: &'static str = "midea_key";
|
||||||
|
|
||||||
fn new(db: &Arc<Mutex<DataBase>>, device_id: u64) -> Result<LoginInfo> {
|
fn new(db: &Arc<Mutex<DataBase>>, device_id: u64) -> Result<LoginInfo> {
|
||||||
let db_lock = db.lock().unwrap();
|
let db_lock = db.lock().unwrap();
|
||||||
|
|
Loading…
Reference in a new issue