mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 22:10:31 +08:00
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:
committed by
Lorenz Leutgeb
parent
a2eb756887
commit
4f7bde023c
@@ -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()
|
||||
|
||||
@@ -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!(
|
||||
|
||||
@@ -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> },
|
||||
|
||||
Reference in New Issue
Block a user