diff --git a/src/api/api.rs b/src/api/api.rs index e96a1f4..ab46cb1 100644 --- a/src/api/api.rs +++ b/src/api/api.rs @@ -147,7 +147,11 @@ impl GoveeClient { /// /// This method will panic if the GET request encounters an error. impl GoveeClient { - pub async fn get_device_state(&self, device: &str, model: &str) -> Result { + pub async fn get_device_state( + &self, + device: &str, + model: &str, + ) -> Result { let client = Client::new(); let params = [("device", device), ("model", model)]; let endpoint = format!("{}/v1/devices/state", GOVEE_ROOT_URL); @@ -157,7 +161,10 @@ impl GoveeClient { .header("Govee-API-Key", &self.govee_api_key) .send() .await?; - let response_json = response.json::().await.unwrap(); + let response_json = response + .json::() + .await + .unwrap(); Ok(response_json) } }