change length comparison to is_empty check per clippy

This commit is contained in:
Carl Wallace
2019-11-27 15:26:13 -05:00
parent 0f1ef2f519
commit 13b350f822
+1 -1
View File
@@ -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(),