From 95d52152520ee2593266e19bfdf090ed724faeec Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Sat, 19 Oct 2024 19:55:02 +0000 Subject: [PATCH] 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. --- src/rust-2024/rustfmt-raw-identifier-sorting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rust-2024/rustfmt-raw-identifier-sorting.md b/src/rust-2024/rustfmt-raw-identifier-sorting.md index 1c12401..c61a37a 100644 --- a/src/rust-2024/rustfmt-raw-identifier-sorting.md +++ b/src/rust-2024/rustfmt-raw-identifier-sorting.md @@ -16,7 +16,7 @@ The [Rust Style Guide] includes [rules for sorting][sorting] that `rustfmt` appl 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: -```rust +```rust,ignore use websocket::client::ClientBuilder; use websocket::r#async::futures::Stream; use websocket::result::WebSocketError; @@ -24,7 +24,7 @@ use websocket::result::WebSocketError; In the 2024 Edition, `rustfmt` now produces: -```rust +```rust,ignore use websocket::r#async::futures::Stream; use websocket::client::ClientBuilder; use websocket::result::WebSocketError;