mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
Implement clippy suggestions
This commit is contained in:
@@ -171,7 +171,7 @@ impl QRCodeMultiReader {
|
||||
|
||||
let mut newRXingResult =
|
||||
RXingResult::new(&newText, newRawBytes, Vec::new(), BarcodeFormat::QR_CODE);
|
||||
if newByteSegment.len() > 0 {
|
||||
if !newByteSegment.is_empty() {
|
||||
newRXingResult.putMetadata(
|
||||
RXingResultMetadataType::BYTE_SEGMENTS,
|
||||
RXingResultMetadataValue::ByteSegments(vec![newByteSegment]),
|
||||
|
||||
Reference in New Issue
Block a user