Skip to content

Commit 4f7d44d

Browse files
save
1 parent e1a7e1d commit 4f7d44d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async fn main() -> Result<()> {
104104

105105
if args.verbosity > 0 {
106106
info!("webtranscat starting");
107-
debug!("Arguments: {:?}", args);
107+
debug!("Arguments: {args:?}");
108108
}
109109

110110
// Create client and connect
@@ -138,7 +138,7 @@ async fn main() -> Result<()> {
138138
}
139139
}
140140
Err(e) => {
141-
error!("Datagram error: {}", e);
141+
error!("Datagram error: {e}");
142142
break;
143143
}
144144
}
@@ -174,12 +174,12 @@ async fn main() -> Result<()> {
174174
}
175175
}
176176
Err(e) => {
177-
error!("Stream read error: {}", e);
177+
error!("Stream read error: {e}");
178178
}
179179
}
180180
}
181181
Err(e) => {
182-
error!("Stream accept error: {}", e);
182+
error!("Stream accept error: {e}");
183183
break;
184184
}
185185
}
@@ -214,13 +214,13 @@ async fn main() -> Result<()> {
214214
}
215215

216216
if let Err(e) = session.send_datagram(Bytes::from(data.to_vec())) {
217-
error!("Failed to send datagram: {}", e);
217+
error!("Failed to send datagram: {e}");
218218
} else if verbose {
219219
debug!("Datagram sent successfully");
220220
}
221221
}
222222
Err(e) => {
223-
error!("Error reading from stdin: {}", e);
223+
error!("Error reading from stdin: {e}");
224224
break;
225225
}
226226
}

0 commit comments

Comments
 (0)