Remove static warning
All checks were successful
Home Server Merge / Serial Reader (pull_request) Successful in 13m34s
All checks were successful
Home Server Merge / Serial Reader (pull_request) Successful in 13m34s
This commit is contained in:
parent
08913a6cfc
commit
8be32763fb
1 changed files with 4 additions and 4 deletions
|
@ -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