Skip to content

core build error on Linux #4515

@hwnahm

Description

@hwnahm

error[E0277]: the trait bound std::string::String: From<std::option::Option<std::string::String>> is not satisfied
--> lib/dal/src/eth_sender_dal.rs:891:26
|
891 | let tx_history = match_query_as!(
| _________________^
892 | | StorageTxHistory,
893 | | [r#"
894 | | SELECT
... |
915 | | )
| |
^ the trait From<std::option::Option<std::string::String>> is not implemented for std::string::String
|
= help: the following other types implement trait From<T>:
std::string::String implements From<&mut str>
std::string::String implements From<&std::string::String>
std::string::String implements From<&str>
std::string::String implements From<Box<str>>
std::string::String implements From<Cow<'_, str>>
std::string::String implements From<PgCiText>
std::string::String implements From<char>
std::string::String implements From<clap_builder::builder::str::Str>
and 14 others
= note: required for std::option::Option<std::string::String> to implement Into<std::string::String>
= note: this error originates in the macro $crate::sqlx_macros::expand_query which comes from the expansion of the macro match_query_as (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try rustc --explain E0277.
error: could not compile zksync_dal (lib) due to 1 previous 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