mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
return a slice for RXingResultPoints
This commit is contained in:
@@ -57,7 +57,7 @@ impl MultipleBarcodeReader for QRCodeMultiReader {
|
||||
detectorRXingResult.getBits(),
|
||||
hints,
|
||||
)?;
|
||||
let mut points = detectorRXingResult.getPoints().clone();
|
||||
let mut points = detectorRXingResult.getPoints().to_vec();
|
||||
// If the code was mirrored: swap the bottom-left and the top-right points.
|
||||
if let Some(other) = decoderRXingResult.getOther() {
|
||||
if other.is::<QRCodeDecoderMetaData>() {
|
||||
@@ -73,7 +73,7 @@ impl MultipleBarcodeReader for QRCodeMultiReader {
|
||||
let mut result = RXingResult::new(
|
||||
decoderRXingResult.getText(),
|
||||
decoderRXingResult.getRawBytes().clone(),
|
||||
points,
|
||||
points.to_vec(),
|
||||
BarcodeFormat::QR_CODE,
|
||||
);
|
||||
let byteSegments = decoderRXingResult.getByteSegments();
|
||||
|
||||
Reference in New Issue
Block a user