Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

implementing StdError for tarantool::error::Error, cast to anyhow errors #8

@chertov

Description

@chertov

Hi! Can't using tarantool-module errors with Anyhow.
Please, consider implementing https://doc.rust-lang.org/std/error/trait.Error.html

error[E0277]: the trait bound `tarantool::error::Error: StdError` is not satisfied
   --> src/tnt/spaces/users.rs:65:56
    |
65  |         return Ok(Some(user_tuple.into_struct::<User>()?));
    |                                                        ^ the trait `StdError` is not implemented for `tarantool::error::Error`
    |
    = note: required because of the requirements on the impl of `From<tarantool::error::Error>` for `anyhow::Error`
    = note: required because of the requirements on the impl of `FromResidual<Result<Infallible, tarantool::error::Error>>` for `Result<std::option::Option<users::User>, anyhow::Error>`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions