build result

This commit is contained in:
Henry Schimke
2023-04-23 11:23:56 -05:00
parent b4f99b3195
commit cb7050a5dd
4 changed files with 58 additions and 63 deletions

View File

@@ -306,10 +306,15 @@ impl QrReader {
}
if (decoderResult.isValid()) {
results.push(RXingResult::new(
&decoderResult.content().to_string(),
decoderResult.content().bytes().to_vec(),
position.to_vec(),
// results.push(RXingResult::new(
// &decoderResult.content().to_string(),
// decoderResult.content().bytes().to_vec(),
// position.to_vec(),
// BarcodeFormat::QR_CODE,
// ));
results.push(RXingResult::with_decoder_result(
decoderResult,
position,
BarcodeFormat::QR_CODE,
));
// results.emplace_back(std::move(decoderResult), std::move(position), BarcodeFormat::QR_CODE);