diff --git a/examples/Cargo.toml b/examples/Cargo.toml index e324fd86..1b97a1c8 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -11,3 +11,4 @@ pyo3 = { version = "0.17.3", path = "..", features = ["auto-initialize", "extens name = "decorator" path = "decorator/src/lib.rs" crate_type = ["cdylib"] +doc-scrape-examples = true diff --git a/xtask/src/doc.rs b/xtask/src/doc.rs index 6d05acf4..cde2c882 100644 --- a/xtask/src/doc.rs +++ b/xtask/src/doc.rs @@ -33,12 +33,7 @@ pub fn run(opts: DocOpts) -> anyhow::Result<()> { .args(if opts.stable { &[][..] } else { - &[ - "-Z", - "unstable-options", - "-Z", - "rustdoc-scrape-examples=examples", - ][..] + &["-Z", "unstable-options", "-Z", "rustdoc-scrape-examples"][..] }) .args(if opts.open { Some("--open") } else { None }), )?;