return a slice for RXingResultPoints

This commit is contained in:
Henry Schimke
2023-01-11 16:06:35 -06:00
parent fde23934f6
commit 7ddeb49064
7 changed files with 8 additions and 8 deletions

View File

@@ -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();