diff --git a/pyo3_bindgen_engine/src/codegen.rs b/pyo3_bindgen_engine/src/codegen.rs index d7c6326..7b641c5 100644 --- a/pyo3_bindgen_engine/src/codegen.rs +++ b/pyo3_bindgen_engine/src/codegen.rs @@ -14,7 +14,7 @@ use rustc_hash::FxHashSet as HashSet; /// default configuration, all submodules, classes, functions, and parameters /// will be recursively parsed and included in the generated bindings. /// -/// ``` +/// ```no_run /// # use pyo3_bindgen_engine::{Codegen, Config}; /// fn main() -> Result<(), Box> { /// Codegen::new(Config::default())? @@ -31,7 +31,7 @@ use rustc_hash::FxHashSet as HashSet; /// respective submodules, classes, functions, and parameters. No direct attributes /// or submodules of the `html` top-level module will be included. /// -/// ``` +/// ```no_run /// # use pyo3_bindgen_engine::{Codegen, Config}; /// fn main() -> Result<(), Box> { /// Codegen::new(Config::default())? diff --git a/pyo3_bindgen_macros/src/lib.rs b/pyo3_bindgen_macros/src/lib.rs index e954714..ed6a4cb 100644 --- a/pyo3_bindgen_macros/src/lib.rs +++ b/pyo3_bindgen_macros/src/lib.rs @@ -12,7 +12,7 @@ mod parser; /// /// Here is a simple example of how to use the macro to generate bindings for the `sys` module. /// -/// ``` +/// ```no_run /// # use pyo3_bindgen_macros::import_python; /// import_python!("sys"); /// pub use sys::*; @@ -20,7 +20,7 @@ mod parser; /// /// For consistency, the top-level package is always included in the generated bindings. /// -/// ``` +/// ```no_run /// # use pyo3_bindgen_macros::import_python; /// import_python!("html.parser"); /// pub use html::parser::*; @@ -28,7 +28,7 @@ mod parser; /// /// Furthermore, the actual name of the package is always used regardless of how it is aliased. /// -/// ``` +/// ```no_run /// # use pyo3_bindgen_macros::import_python; /// import_python!("os.path"); /// pub use posixpath::*;