Add absolute import for Result (#307)

This changes it so that the `Result` used in the derived schema code is using the absolute path to the `Result` enum, otherwise type aliases, such as: `error_stack::Result` cannot be used.
This commit is contained in:
Bilal Mahmoud 2024-08-17 14:28:56 +02:00 committed by GitHub
parent 599fbb38b6
commit 0af8f50086
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -556,7 +556,7 @@ fn field_default_expr(field: &Field, container_has_default: bool) -> Option<Toke
impl serde::Serialize for _SchemarsDefaultSerialize<#ty> impl serde::Serialize for _SchemarsDefaultSerialize<#ty>
{ {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> fn serialize<S>(&self, serializer: S) -> core::result::Result<S::Ok, S::Error>
where where
S: serde::Serializer S: serde::Serializer
{ {