File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -113,24 +113,4 @@ edition = "2018"
113
113
```
114
114
115
115
See that ` edition = "2018" ` ? That's what opts you in to the new features.
116
- Set it, ` cargo +beta build ` , and you should be good to go!
117
-
118
- ## Writing idiomatic code
119
-
120
- We have some new lints that suggest using certain idioms in your Rust 2018
121
- code. We don't have them turned on by default yet. To see what your code would
122
- look like, you can use ` cargo fix ` :
123
-
124
- ``` console
125
- $ cargo +beta fix --edition-idioms
126
- ```
127
-
128
- If things look great, or things look terrible, please let us know! We hope to make
129
- these lints warn by default after gaining some experience with them and working
130
- out the bugs.
131
-
132
- > The ` --edition-idioms ` flag applies only to the "current crate"; if you want
133
- > to run it against a workspace is necessary to use a workaround with ` RUSTFLAGS `
134
- > in order to execute it in all the workspace members.
135
- >
136
- > $ RUSTFLAGS='-Wrust_2018_idioms' cargo fix --all
116
+ Set it, ` cargo +beta build ` , and you should be good to go!
You can’t perform that action at this time.
0 commit comments