From adbe9de4dd8a61b5f582437a73bc63dd9b985f91 Mon Sep 17 00:00:00 2001 From: Meditation Mind <115960723+meditationmind@users.noreply.github.com> Date: Mon, 2 Feb 2026 18:55:16 +0900 Subject: [PATCH] Fix Clippy and Build docs test errors --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ef3c164d6fa9..947248c1697e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![cfg_attr(doc_nightly, feature(doc_cfg, doc_auto_cfg))] +#![cfg_attr(doc_nightly, feature(doc_cfg))] #![doc(test(attr(deny(deprecated))))] // native #[non_exhaustive] is awful because you can't do struct update syntax with it (??) #![allow(clippy::manual_non_exhaustive)] @@ -347,7 +347,7 @@ pub async fn calc(ctx: Context<'_>, expr: String) -> Result<(), Error> { Can be transformed into -```rust +```rust,no_run # type Error = Box; # type Context<'a> = poise::Context<'a, (), Error>; fn calc_inner(expr: &str) -> Option {