@@ -170,7 +170,7 @@ impl AppState<'_> {
170170 params.insert("name", name);
171171
172172 let req = client.post(devices_url).form(¶ms);
173- log::debug!("Sending request: {:?}", req );
173+ log::debug!("Sending request: {req :?}");
174174 let res = req.send().await?;
175175 let status = res.status();
176176 let json: POOCAPIResponse = res.json().await?;
@@ -375,7 +375,7 @@ async fn inner_loop(state: &mut AppState<'_>) -> Result<()> {
375375 loop {
376376 if let Some(Ok(message)) = timeout(tokio::time::Duration::from_secs(95), ws_stream.next()).await? {
377377 let text = message.to_text()?;
378- log::debug!("Received: {}", text );
378+ log::debug!("Received: {text}" );
379379 match text {
380380 "!" => {
381381 log::debug!("Starting message display");
@@ -416,7 +416,7 @@ async fn run_loop(state: &mut AppState<'_>) -> Result<()> {
416416 continue;
417417 }
418418 Err(ref e) if e.is::<std::io::Error>() => {
419- log::info!("Got IO Error {}, sleeping", e );
419+ log::info!("Got IO Error {e }, sleeping");
420420 sleep(state.backoff_time).await;
421421 log::info!("Incrementing backoff");
422422 state.increment_backoff();
@@ -427,15 +427,15 @@ async fn run_loop(state: &mut AppState<'_>) -> Result<()> {
427427 Some(inner) => match inner {
428428 TsunaLoopError::Abort() => return Err(e),
429429 TsunaLoopError::Error() => {
430- log::info!("TsunaLoopError {}, continuing", e );
430+ log::info!("TsunaLoopError {e }, continuing");
431431 continue;
432432 },
433433 },
434434 None => return Err(e),
435435 },
436436 Ok(o) => return Ok(o),
437437 Err(e) => {
438- log::info!("Got unhandled Error: {:?}, continuing", e );
438+ log::info!("Got unhandled Error: {e :?}, continuing");
439439 sleep(state.backoff_time).await;
440440 state.increment_backoff();
441441 continue;
0 commit comments