From 4f7bde023c8d80c5a4e27ec0493c71340985328f Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Tue, 4 Aug 2026 11:49:45 +0100 Subject: [PATCH] surf: Ignore Rust and JSON examples The examples do not import everything necessary to compile, so the doctests will fail using `no_run`. Instead, use `ignore` instead so that it does not attempt to compile the examples. --- crates/radicle-surf/src/glob.rs | 4 ++-- crates/radicle-surf/src/namespace.rs | 4 ++-- crates/radicle-surf/src/tree.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/radicle-surf/src/glob.rs b/crates/radicle-surf/src/glob.rs index 5a4b8ad4a..ecb5b0196 100644 --- a/crates/radicle-surf/src/glob.rs +++ b/crates/radicle-surf/src/glob.rs @@ -172,7 +172,7 @@ impl Glob { /// `Glob`. /// /// # Example - /// ```no_run + /// ```ignore /// Glob::heads(pattern!("features/*")) /// .insert(pattern!("qa/*")) /// .branches() @@ -246,7 +246,7 @@ impl Glob { /// `Glob`. /// /// # Example - /// ```no_run + /// ```ignore /// Glob::remotes(pattern!("origin/features/*")) /// .insert(pattern!("origin/qa/*")) /// .branches() diff --git a/crates/radicle-surf/src/namespace.rs b/crates/radicle-surf/src/namespace.rs index 364e42542..ae133ebd1 100644 --- a/crates/radicle-surf/src/namespace.rs +++ b/crates/radicle-surf/src/namespace.rs @@ -45,7 +45,7 @@ impl Namespace { /// /// # Example /// - /// ```no_run + /// ```ignore /// let ns = "surf/git".parse::(); /// let name = ns.to_namespaced(qualified!("refs/heads/main")); /// assert_eq!( @@ -72,7 +72,7 @@ impl Namespace { /// /// # Example /// - /// ```no_run + /// ```ignore /// let ns = "surf/git".parse::(); /// let name = ns.to_namespaced(pattern!("refs/heads/*").to_qualified().unwrap()); /// assert_eq!( diff --git a/crates/radicle-surf/src/tree.rs b/crates/radicle-surf/src/tree.rs index 8e65ad349..3f24403cf 100644 --- a/crates/radicle-surf/src/tree.rs +++ b/crates/radicle-surf/src/tree.rs @@ -74,7 +74,7 @@ impl Tree { impl Serialize for Tree { /// Sample output: /// (for `` and `` sample output, see [`Entry`]) - /// ``` + /// ```ignore /// { /// "entries": [ /// { },