-
Notifications
You must be signed in to change notification settings - Fork 179
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
Use Rust 2018 syntax? #41
Comments
agree but the suggested change has to be synchronized with the appropriate change in source code of the examples at github.com/rust-embedded/cortex-m-quickstart . |
What do you mean by synchronize? Open PRs on both and then we'll merge them, couldn't be easier. 😅 |
Created a PR on this issue |
248: Provide a note on 'extern crate' usage in edition 2018 syntax of Rust r=adamgreig a=hyperslv I was confused reading 'extern crate' in the examples of the book since it looks like old Rust syntax and encounters quite rare nowadays. So it is looked like not-updated. I saw an [issue](#41) which tells that other people also had same thoughts. So my change is to make it clear that usage of this declaration form is intended and not-updated. Co-authored-by: hyperslv <[email protected]> Co-authored-by: hyperslv <[email protected]>
This issue might be closed since the appropriate PR was merged. |
There are still some book/src/peripherals/singletons.md Line 65 in 19f798d
Line 33 in 09986cd
Shall we fix them all? |
@Narukara I would welcome a PR fixing them all. We could then close this issue. |
Should we be using Rust 2018 syntax in the book? The main change would be removing
extern crate
statements.The text was updated successfully, but these errors were encountered: