We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65af81b commit a815986Copy full SHA for a815986
src/lib.rs
@@ -301,11 +301,10 @@ where
301
#[cfg(not(feature = "echo"))]
302
{
303
// Echo the command
304
- write!(context, "\r").unwrap();
305
- if let Ok(s) = core::str::from_utf8(&self.buffer[0..self.used]) {
306
- write!(context, "{}", s).unwrap();
307
- }
+ context.write_all(b"\r").unwrap();
+ context.write_all(&self.buffer[..self.used]).unwrap();
308
}
+
309
// Handle the command
310
self.process_command(context);
311
Outcome::CommandProcessed
0 commit comments