style: 修正 feature_flags 反序列化处的 rustfmt 格式,修复 release preflight 失败
This commit is contained in:
1 parent
4b9b9ebf47
commit
8a9ddc796a
1 file changed
+3
-3
@@ -251,9 +251,9 @@ fn filter_known_feature_flags(
|
|||||||
) -> HashMap<FeatureFlag, bool> {
|
) -> HashMap<FeatureFlag, bool> {
|
||||||
let mut flags = HashMap::with_capacity(raw.len());
|
let mut flags = HashMap::with_capacity(raw.len());
|
||||||
for (key, value) in raw {
|
for (key, value) in raw {
|
||||||
if let Ok(flag) =
|
if let Ok(flag) = serde_json::from_value::<FeatureFlag>(
|
||||||
serde_json::from_value::<FeatureFlag>(serde_json::Value::String(key))
|
serde_json::Value::String(key),
|
||||||
{
|
) {
|
||||||
flags.insert(flag, value);
|
flags.insert(flag, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user