change PointCallback to accept Point instead of ResultPoint

This commit is contained in:
Vukašin Stepanović
2023-02-16 16:20:53 +00:00
parent 0992e85e6c
commit 072d3d0ec7
6 changed files with 8 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ pub use encode_hints::*;
/// Callback which is invoked when a possible result point (significant
/// point in the barcode image such as a corner) is found.
pub type PointCallback = Rc<dyn Fn(&dyn ResultPoint)>;
pub type PointCallback = Rc<dyn Fn(Point)>;
/** Temporary type to ease refactoring and keep backwards-compatibility */
pub type RXingResultPointCallback = PointCallback;