refactor: better handling of hint_style_arg

This commit is contained in:
graelo 2022-06-01 08:46:42 +02:00
parent d2eb8f0e16
commit e13c58db30
3 changed files with 23 additions and 19 deletions

View file

@ -96,7 +96,7 @@ impl ConfigExt {
}
"@copyrat-hint-style" => {
let case_insensitive = true;
inner.hint_style = Some(
inner.hint_style_arg = Some(
basic::HintStyleArg::from_str(value, case_insensitive)
.map_err(Error::ExpectedEnumVariant)?,
)