fix for all optional features

This commit is contained in:
Henry Schimke
2023-05-04 15:00:54 -05:00
parent 3fc068f49b
commit 4a1873f84d

View File

@@ -268,11 +268,7 @@ fn decodeKanjiSegment(
let encoder = if let Some(DecodeHintValue::QrAssumeSpecConformInput(true)) =
hints.get(&DecodeHintType::QR_ASSUME_SPEC_CONFORM_INPUT)
{
if let Some(ccse) = &currentCharacterSetECI {
CharacterSet::getCharacterSetECIByName(ccse)
} else {
CharacterSet::ISO8859_1
}
currentCharacterSetECI.unwrap_or(CharacterSet::ISO8859_1)
} else {
CharacterSet::Shift_JIS
};