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

@@ -71,7 +71,7 @@ impl Reader for QRCodeReader {
Detector::new(image.getBlackMatrix()).detect_with_hints(hints)?;
decoderRXingResult =
qrcode_decoder::decode_bitmatrix_with_hints(detectorRXingResult.getBits(), hints)?;
points = detectorRXingResult.getPoints().clone();
points = detectorRXingResult.getPoints().to_vec();
}
// If the code was mirrored: swap the bottom-left and the top-right points.