Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust 2021 Macro Warning Cleanup #3658

Merged
merged 2 commits into from
Nov 2, 2021

Conversation

yeastplume
Copy link
Member

Small warning message cleanup of warnings related to upcoming changes in Rust. e.g:

warning: trailing semicolon in macro used in expression position
   --> api/src/web.rs:142:4
    |
142 |         };
    |          ^
    |
   ::: api/src/handlers/blocks_api.rs:203:18
    |
203 |         let el = right_path_element!(req);
    |                  ------------------------ in this macro invocation
    |
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
    = note: this warning originates in the macro `right_path_element` (in Nightly builds, run with -Z macro-backtrace for more info)

Also cleans up unused import warnings from cargo tests.

Copy link
Member

@quentinlesceller quentinlesceller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good 👍

@yeastplume yeastplume merged commit 0170f03 into mimblewimble:master Nov 2, 2021
@yeastplume yeastplume deleted the warning_clean branch January 20, 2022 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants