From 3108ee553602ae498e3036752c890f7672dd1669 Mon Sep 17 00:00:00 2001 From: Alexander Korolev Date: Fri, 6 Sep 2024 21:04:02 +0200 Subject: [PATCH] doc: use no_run instead ignore --- README.md | 2 +- templates/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aa2b943..88e30f7 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ warp = { version = "0.3", default-features = false } in src/main.rs: -```rust#ignore +```rust, no_run use std::{convert::Infallible, env, net::SocketAddr, sync::Arc}; use cookie::time::Duration; diff --git a/templates/README.md b/templates/README.md index 96e3f98..9bfa023 100644 --- a/templates/README.md +++ b/templates/README.md @@ -62,6 +62,6 @@ in Cargo.toml: in src/main.rs: -{{ codeblock "rust#ignore" ( http_get (replace "https://raw.githubusercontent.com/kilork/openid-examples/vVERSION/examples/warp.rs" "VERSION" (env_var "OPENID_RUST_MAJOR_VERSION") ) ) }} +{{ codeblock "rust, no_run" ( http_get (replace "https://raw.githubusercontent.com/kilork/openid-examples/vVERSION/examples/warp.rs" "VERSION" (env_var "OPENID_RUST_MAJOR_VERSION") ) ) }} See full example: [openid-examples: warp](https://github.com/kilork/openid-examples/blob/v{{ env_var "OPENID_RUST_MAJOR_VERSION" }}/examples/warp.rs)