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 f8352f7 commit d421137Copy full SHA for d421137
src/rust/lib_ccxr/src/net/block.rs
@@ -250,7 +250,7 @@ pub trait BlockStream {
250
return Ok(false);
251
}
252
253
- if data.len() > 0 && self.send(data)? != data.len() {
+ if !data.is_empty() && self.send(data)? != data.len() {
254
255
256
@@ -351,7 +351,7 @@ impl Display for Command {
351
Command::Ping => "PING",
352
};
353
354
- let _ = write!(f, "{}", message);
+ let _ = write!(f, "{message}");
355
356
Ok(())
357
0 commit comments