diff options
| author | mat <github@matdoes.dev> | 2022-10-27 21:22:47 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-10-27 21:22:47 -0500 |
| commit | 9de6c03dfbaa08890b1ec8322a97b7097d4a9d37 (patch) | |
| tree | f8a2e96893036b32ab2299df49fa5b88fb5187da /azalea-client/src | |
| parent | 7ae8bfab5095b8d6fe71f32a0b1cda8a47ccff94 (diff) | |
| download | azalea-drasl-9de6c03dfbaa08890b1ec8322a97b7097d4a9d37.tar.xz | |
use variables directly in format strings
thanks clippy we love you
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/client.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 54e08aae..2ca92354 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -230,7 +230,7 @@ impl Client { } }, Err(e) => { - panic!("Error: {:?}", e); + panic!("Error: {e:?}"); } } }; @@ -300,7 +300,7 @@ impl Client { if IGNORE_ERRORS { continue; } else { - panic!("Error handling packet: {}", e); + panic!("Error handling packet: {e}"); } } }, @@ -308,7 +308,7 @@ impl Client { if IGNORE_ERRORS { warn!("{}", e); match e { - ReadPacketError::FrameSplitter { .. } => panic!("Error: {:?}", e), + ReadPacketError::FrameSplitter { .. } => panic!("Error: {e:?}"), _ => continue, } } else { |
