mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 06:38:03 +08:00
Migrate legacy document call arguments to the context call convention
This commit is contained in:
@@ -1208,7 +1208,9 @@ fn migrate_call_argument<'de, D: serde::Deserializer<'de>>(deserializer: D) -> R
|
||||
Old(Option<Type>),
|
||||
}
|
||||
|
||||
// TODO: Eventually remove this migration document upgrade code
|
||||
Ok(match CallArg::deserialize(deserializer)? {
|
||||
CallArg::New(Type::Concrete(descriptor)) if descriptor.name.ends_with("OwnedContextImpl>>") => concrete!(Context),
|
||||
CallArg::New(ty) => ty,
|
||||
CallArg::Old(ty) => ty.unwrap_or_default(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user