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:
@@ -214,9 +214,8 @@ impl GlobalHistogramBinarizer {
|
||||
|
||||
// Make sure firstPeak corresponds to the black peak.
|
||||
if firstPeak > secondPeak {
|
||||
let temp = firstPeak;
|
||||
firstPeak = secondPeak;
|
||||
secondPeak = temp;
|
||||
|
||||
std::mem::swap(&mut firstPeak, &mut secondPeak);
|
||||
}
|
||||
|
||||
// If there is too little contrast in the image to pick a meaningful black point, throw rather
|
||||
|
||||
Reference in New Issue
Block a user