diff --git a/crates/libs/registry/src/value.rs b/crates/libs/registry/src/value.rs index 594162c227..753e9d416c 100644 --- a/crates/libs/registry/src/value.rs +++ b/crates/libs/registry/src/value.rs @@ -76,9 +76,7 @@ impl TryFrom for String { type Error = Error; fn try_from(from: Value) -> Result { match from.ty { - Type::String | Type::ExpandString => { - Ok(Self::from_utf16(trim(trim(from.data.as_wide())))?) - } + Type::String | Type::ExpandString => Ok(Self::from_utf16(trim(from.data.as_wide()))?), _ => Err(invalid_data()), } }