Remove static warning
All checks were successful
Home Server Merge / Serial Reader (pull_request) Successful in 13m34s

This commit is contained in:
hodasemi 2024-01-14 17:36:41 +01:00
parent 08913a6cfc
commit 8be32763fb

View file

@ -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();