Commit f186c2e
committed
docs: remove
Some of the examples still include `#[macro_use] extern crate`
statements for importing macros from `tracing` or `tracing-core`. On a
recent nightly, this results in import conflicts with the implicit
import of the documented crate in doctests:
https://github.com/tokio-rs/tracing/runs/4279736243?check_suite_focus=true
This commit removes all the `extern crate` statements from doctests. Our
MSRV is new enough that `extern crate` is not required on any of the Rust
versions we support.
Signed-off-by: Eliza Weisman <eliza@buoyant.io>#[macro_use] extern crate (#1737)1 parent 6ede79c commit f186c2e
3 files changed
+12
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
| 127 | + | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
| |||
160 | 158 | | |
161 | 159 | | |
162 | 160 | | |
163 | | - | |
164 | | - | |
165 | 161 | | |
| 162 | + | |
166 | 163 | | |
167 | 164 | | |
168 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
579 | | - | |
580 | | - | |
| 578 | + | |
581 | 579 | | |
582 | 580 | | |
583 | 581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
| |||
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
160 | | - | |
161 | | - | |
| 159 | + | |
162 | 160 | | |
163 | 161 | | |
164 | 162 | | |
| |||
200 | 198 | | |
201 | 199 | | |
202 | 200 | | |
203 | | - | |
204 | | - | |
205 | 201 | | |
206 | 202 | | |
207 | 203 | | |
| |||
241 | 237 | | |
242 | 238 | | |
243 | 239 | | |
244 | | - | |
245 | | - | |
| 240 | + | |
246 | 241 | | |
247 | 242 | | |
248 | 243 | | |
| |||
275 | 270 | | |
276 | 271 | | |
277 | 272 | | |
278 | | - | |
279 | | - | |
| 273 | + | |
280 | 274 | | |
281 | 275 | | |
282 | 276 | | |
| |||
287 | 281 | | |
288 | 282 | | |
289 | 283 | | |
290 | | - | |
291 | | - | |
| 284 | + | |
292 | 285 | | |
293 | 286 | | |
294 | 287 | | |
| |||
722 | 715 | | |
723 | 716 | | |
724 | 717 | | |
725 | | - | |
726 | | - | |
| 718 | + | |
727 | 719 | | |
728 | 720 | | |
729 | 721 | | |
| |||
738 | 730 | | |
739 | 731 | | |
740 | 732 | | |
741 | | - | |
| 733 | + | |
742 | 734 | | |
743 | 735 | | |
744 | 736 | | |
| |||
760 | 752 | | |
761 | 753 | | |
762 | 754 | | |
763 | | - | |
| 755 | + | |
764 | 756 | | |
765 | 757 | | |
766 | 758 | | |
| |||
1070 | 1062 | | |
1071 | 1063 | | |
1072 | 1064 | | |
1073 | | - | |
1074 | | - | |
| 1065 | + | |
1075 | 1066 | | |
1076 | 1067 | | |
1077 | 1068 | | |
| |||
0 commit comments