mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
remove ResultPoint trait uses of Point
Point already has `x` and `y` properties, so accessing them with `getX()` and `getY()` is needlessly verbose. These calls have been removed, though the trait impl is still presen for the time being, since the OneDReader proc macro requires it.
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
use std::{fmt, iter::Sum};
|
||||
|
||||
use crate::ResultPoint;
|
||||
use std::hash::Hash;
|
||||
|
||||
#[cfg(feature = "serde")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::ResultPoint;
|
||||
|
||||
/**
|
||||
* <p>Encapsulates a point of interest in an image containing a barcode. Typically, this
|
||||
* would be the location of a finder pattern or the corner of the barcode, for example.</p>
|
||||
@@ -64,6 +65,7 @@ impl<'a> Sum<&'a Point> for Point {
|
||||
}
|
||||
}
|
||||
|
||||
/** This impl is temporary and is there to ease refactoring. */
|
||||
impl ResultPoint for Point {
|
||||
fn getX(&self) -> f32 {
|
||||
self.x
|
||||
|
||||
Reference in New Issue
Block a user