forked from hyperledger-iroha/iroha
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[refactor]: update iroha_telemetry_derive to use syn2 (hyperledger-ir…
…oha#4168) Signed-off-by: VAmuzing <amuzik95@gmail.com>
- Loading branch information
Showing
9 changed files
with
100 additions
and
62 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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: Function should be an `impl execute` | ||
--> tests/ui_fail/not_execute.rs:4:4 | ||
--> tests/ui_fail/not_execute.rs:5:4 | ||
| | ||
4 | fn exequte(wsv: &WorldStateView) -> Result<(), ()> { | ||
5 | fn exequte(wsv: &WorldStateView) -> Result<(), ()> { | ||
| ^^^^^^^ |
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
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: Should return `Result`. Found RESULT | ||
--> tests/ui_fail/not_return_result.rs:4:50 | ||
error: Should return `Result`. Found MyNotResult | ||
--> tests/ui_fail/not_return_result.rs:7:38 | ||
| | ||
4 | fn execute(_wsv: &WorldStateView) -> iroha_core::RESULT { | ||
| ^^^^^^ | ||
7 | fn execute(_wsv: &WorldStateView) -> MyNotResult { | ||
| ^^^^^^^^^^^ |
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
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,7 +1,7 @@ | ||
error: `Fn` must return `Result`. Returns nothing instead. | ||
--> tests/ui_fail/return_nothing.rs:3:1 | ||
--> tests/ui_fail/return_nothing.rs:4:1 | ||
| | ||
3 | #[metrics(+"test_query", "another_test_query_without_timing")] | ||
4 | #[metrics(+"test_query", "another_test_query_without_timing")] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the attribute macro `metrics` (in Nightly builds, run with -Z macro-backtrace for more info) |