mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
change NEEDS_RESULT_CALLBACK to accept closures
This resolves issue #2. This is a breaking change, and should necessitate moving to v0.3.0 FIXES: #2
This commit is contained in:
@@ -45,7 +45,7 @@ impl<'a> MultiDetector<'_> {
|
||||
let resultPointCallback = if let Some(DecodeHintValue::NeedResultPointCallback(cb)) =
|
||||
hints.get(&DecodeHintType::NEED_RESULT_POINT_CALLBACK)
|
||||
{
|
||||
Some(*cb)
|
||||
Some(cb.clone())
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user