mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
add aliases so the OneDReader proc macro compiles
Currently it's not possible to rename RXingResultPoint to Point cleanly, since the external OneDReader proc macro makes use of them. For the time being, simple aliases are introduced to get the code to compile, but the plan is to remove them at a later point.
This commit is contained in:
@@ -19,6 +19,9 @@ pub struct Point {
|
||||
pub(crate) y: f32,
|
||||
}
|
||||
|
||||
/** Currently necessary because the external OneDReader proc macro uses it. */
|
||||
pub type RXingResultPoint = Point;
|
||||
|
||||
impl Hash for Point {
|
||||
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
|
||||
self.x.to_string().hash(state);
|
||||
|
||||
Reference in New Issue
Block a user