diff --git a/src/midea_helper.rs b/src/midea_helper.rs index f8bab63..6f0f6f2 100644 --- a/src/midea_helper.rs +++ b/src/midea_helper.rs @@ -11,10 +11,10 @@ enum LoginInfo { } impl LoginInfo { - const MIDEA_KEY_EMAIL: &str = "midea_cloud_mail"; - const MIDEA_KEY_PW: &str = "midea_cloud_pw"; - const MIDEA_KEY_TOKEN: &str = "midea_token"; - const MIDEA_KEY_KEY: &str = "midea_key"; + const MIDEA_KEY_EMAIL: &'static str = "midea_cloud_mail"; + const MIDEA_KEY_PW: &'static str = "midea_cloud_pw"; + const MIDEA_KEY_TOKEN: &'static str = "midea_token"; + const MIDEA_KEY_KEY: &'static str = "midea_key"; fn new(db: &Arc>, device_id: u64) -> Result { let db_lock = db.lock().unwrap();