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.
This commit is contained in:
Fintan Halpenny
2026-08-05 13:18:19 +02:00
committed by Lorenz Leutgeb
parent a2eb756887
commit 4f7bde023c
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -172,7 +172,7 @@ impl Glob<Local> {
/// `Glob<Branch>`.
///
/// # Example
/// ```no_run
/// ```ignore
/// Glob::heads(pattern!("features/*"))
/// .insert(pattern!("qa/*"))
/// .branches()
@@ -246,7 +246,7 @@ impl Glob<Remote> {
/// `Glob<Branch>`.
///
/// # Example
/// ```no_run
/// ```ignore
/// Glob::remotes(pattern!("origin/features/*"))
/// .insert(pattern!("origin/qa/*"))
/// .branches()
+2 -2
View File
@@ -45,7 +45,7 @@ impl Namespace {
///
/// # Example
///
/// ```no_run
/// ```ignore
/// let ns = "surf/git".parse::<Namespace>();
/// 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::<Namespace>();
/// let name = ns.to_namespaced(pattern!("refs/heads/*").to_qualified().unwrap());
/// assert_eq!(
+1 -1
View File
@@ -74,7 +74,7 @@ impl Tree {
impl Serialize for Tree {
/// Sample output:
/// (for `<entry_1>` and `<entry_2>` sample output, see [`Entry`])
/// ```
/// ```ignore
/// {
/// "entries": [
/// { <entry_1> },