Skip to content

Commit

Permalink
Add absolute import for Result (#307)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
indietyp authored Aug 17, 2024
1 parent 599fbb3 commit 0af8f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schemars_derive/src/schema_exprs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ fn field_default_expr(field: &Field, container_has_default: bool) -> Option<Toke

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
S: serde::Serializer
{
Expand Down

0 comments on commit 0af8f50

Please sign in to comment.