mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 00:18:12 +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>),
|
Old(Option<Type>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Eventually remove this migration document upgrade code
|
||||||
Ok(match CallArg::deserialize(deserializer)? {
|
Ok(match CallArg::deserialize(deserializer)? {
|
||||||
|
CallArg::New(Type::Concrete(descriptor)) if descriptor.name.ends_with("OwnedContextImpl>>") => concrete!(Context),
|
||||||
CallArg::New(ty) => ty,
|
CallArg::New(ty) => ty,
|
||||||
CallArg::Old(ty) => ty.unwrap_or_default(),
|
CallArg::Old(ty) => ty.unwrap_or_default(),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user