change length comparison to is_empty check per clippy
This commit is contained in:
+1
-1
@@ -421,7 +421,7 @@ impl<'tx> Transaction<'tx> {
|
||||
|
||||
sw = response.status_words().code();
|
||||
|
||||
if 0 != out_data.len() && (out_data.len() - response.data().len() > max_out) {
|
||||
if !out_data.is_empty() && (out_data.len() - response.data().len() > max_out) {
|
||||
error!(
|
||||
"output buffer too small: wanted to write {}, max was {}",
|
||||
out_data.len() - response.data().len(),
|
||||
|
||||
Reference in New Issue
Block a user