Closed CodesInChaos closed 3 months ago
Deriving Queryable uses the following return type for the function:
Queryable
Result<Self, ::edgedb_protocol::errors::DecodeError>
This usually works, since Result is in the prelude. It can however cause problems if there is a conflicting definition of Result in the current module.
Result
It should instead generate:
::std::result::Result<Self, ::edgedb_protocol::errors::DecodeError>
There is probably a similar issue concerning the use of Ok and Err in the macro output as well.
Ok
Err
Deriving
Queryable
uses the following return type for the function:This usually works, since
Result
is in the prelude. It can however cause problems if there is a conflicting definition ofResult
in the current module.It should instead generate:
There is probably a similar issue concerning the use of
Ok
andErr
in the macro output as well.