This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bernhard Schuster
committed
Nov 27, 2020
1 parent
077301e
commit 8eec318
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
primitives/api/test/tests/ui/mock_advanced_block_id_by_value.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
error: `BlockId` needs to be taken by reference and not by value! | ||
--> $DIR/mock_advanced_block_id_by_value.rs:11:1 | ||
| | ||
11 | / sp_api::mock_impl_runtime_apis! { | ||
12 | | impl Api<Block> for MockApi { | ||
13 | | #[advanced] | ||
14 | | fn test(&self, _: BlockId<Block>) -> Result<sp_core::NativeOrEncoded<()>, ApiError> { | ||
12 | / sp_api::mock_impl_runtime_apis! { | ||
13 | | impl Api<Block> for MockApi { | ||
14 | | #[advanced] | ||
15 | | fn test(&self, _: BlockId<Block>) -> Result<sp_core::NativeOrEncoded<()>, ApiError> { | ||
... | | ||
17 | | } | ||
18 | | } | ||
18 | | } | ||
19 | | } | ||
| |_^ | ||
| | ||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
2 changes: 1 addition & 1 deletion
2
primitives/api/test/tests/ui/mock_advanced_missing_blockid.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
error: If using the `advanced` attribute, it is required that the function takes at least one argument, the `BlockId`. | ||
--> $DIR/mock_advanced_missing_blockid.rs:14:3 | ||
| | ||
14 | fn test(&self) -> Result<sp_core::NativeOrEncoded<()>, ApiError> { | ||
15 | fn test(&self) -> Result<sp_core::NativeOrEncoded<()>, ApiError> { | ||
| ^^ |