From 618849b43b2f99ad905870c6639980d1330b5533 Mon Sep 17 00:00:00 2001 From: Tobin Feldman-Fitzthum Date: Mon, 7 Oct 2024 15:20:07 -0500 Subject: [PATCH] docs: fix doctest error For doctests, there is no keyword `no-run`. Doctests recognizes `no_run`, but this still compiles the code, which will fail in this case. We could fixup these examples with some hidden lines so that they compile, but since we don't really use rustdoc currently, let's just have the compiler ignore these examples. Signed-off-by: Tobin Feldman-Fitzthum --- kbs/src/http/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kbs/src/http/error.rs b/kbs/src/http/error.rs index d278e2d8f..70fd46128 100644 --- a/kbs/src/http/error.rs +++ b/kbs/src/http/error.rs @@ -84,11 +84,11 @@ pub enum Error { } /// For example, if we want to raise an error of `MissingCookie` -/// ```no-run +/// ```ignore /// raise_error!(Error::MissingCookie); /// ``` /// is short for -/// ```no-run +/// ```ignore /// return Err(Error::MissingCookie); /// ``` #[macro_export]