-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
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