Skip to content

Commit 95d5215

Browse files
committed
Don't run doctests on rustfmt ident sorting page
The examples on the rustfmt page about identifier sorting are not meant to be tested, so let's mark them that way.
1 parent dae0f58 commit 95d5215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rust-2024/rustfmt-raw-identifier-sorting.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ The [Rust Style Guide] includes [rules for sorting][sorting] that `rustfmt` appl
1616

1717
Prior to the 2024 Edition, when sorting rustfmt would use the leading `r#` token instead of the ident which led to unwanted results. For example:
1818

19-
```rust
19+
```rust,ignore
2020
use websocket::client::ClientBuilder;
2121
use websocket::r#async::futures::Stream;
2222
use websocket::result::WebSocketError;
2323
```
2424

2525
In the 2024 Edition, `rustfmt` now produces:
2626

27-
```rust
27+
```rust,ignore
2828
use websocket::r#async::futures::Stream;
2929
use websocket::client::ClientBuilder;
3030
use websocket::result::WebSocketError;

0 commit comments

Comments
 (0)