mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 20:32:34 +00:00
return a slice for RXingResultPoints
This commit is contained in:
@@ -22,7 +22,7 @@ impl DetectorRXingResult for QRCodeDetectorResult {
|
||||
&self.bit_source
|
||||
}
|
||||
|
||||
fn getPoints(&self) -> &Vec<crate::RXingResultPoint> {
|
||||
fn getPoints(&self) -> &[crate::RXingResultPoint] {
|
||||
&self.result_points
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user