Skip to content
Snippets Groups Projects
Commit ac28b86f authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Fix ui tests for latest rust stable (#6310)

parent b0aa4cfe
No related merge requests found
......@@ -5,21 +5,26 @@ error: Error type can not change between runtime apis
| ^^^^
error[E0277]: the trait bound `u32: std::convert::From<std::string::String>` is not satisfied
--> $DIR/mock_only_one_error_type.rs:15:1
|
15 | / sp_api::mock_impl_runtime_apis! {
16 | | impl Api<Block> for MockApi {
17 | | type Error = u32;
18 | |
... |
26 | | }
27 | | }
| |_^ the trait `std::convert::From<std::string::String>` is not implemented for `u32`
|
= help: the following implementations were found:
<u32 as std::convert::From<bool>>
<u32 as std::convert::From<char>>
<u32 as std::convert::From<h2::frame::reason::Reason>>
<u32 as std::convert::From<h2::frame::reason::Reason>>
and 18 others
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
--> $DIR/mock_only_one_error_type.rs:15:1
|
15 | / sp_api::mock_impl_runtime_apis! {
16 | | impl Api<Block> for MockApi {
17 | | type Error = u32;
18 | |
... |
26 | | }
27 | | }
| |_^ the trait `std::convert::From<std::string::String>` is not implemented for `u32`
|
::: $WORKSPACE/primitives/api/src/lib.rs:347:35
|
347 | type Error: std::fmt::Debug + From<String>;
| ------------ required by this bound in `sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::ApiErrorExt`
|
= help: the following implementations were found:
<u32 as std::convert::From<bool>>
<u32 as std::convert::From<char>>
<u32 as std::convert::From<h2::frame::reason::Reason>>
<u32 as std::convert::From<h2::frame::reason::Reason>>
and 18 others
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment