netlify: fix examples option on latest nightly

This commit is contained in:
David Hewitt 2022-12-27 12:58:23 +00:00
parent af2ad45c73
commit 850c21ab39
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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 }),
)?;