mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
convert most variable swaps to mem swaps
This commit is contained in:
@@ -85,9 +85,7 @@ impl Detector {
|
||||
let mut bulls_eye_corners = self.get_bulls_eye_corners(p_center)?;
|
||||
|
||||
if is_mirror {
|
||||
let temp = bulls_eye_corners[0];
|
||||
bulls_eye_corners[0] = bulls_eye_corners[2];
|
||||
bulls_eye_corners[2] = temp;
|
||||
bulls_eye_corners.swap(0,2);
|
||||
}
|
||||
|
||||
// 3. Get the size of the matrix and other parameters from the bull's eye
|
||||
|
||||
Reference in New Issue
Block a user