diff --git a/src/optimiser/taso.rs b/src/optimiser/taso.rs index 99f9e08b..e35b29f7 100644 --- a/src/optimiser/taso.rs +++ b/src/optimiser/taso.rs @@ -15,8 +15,7 @@ mod eq_circ_class; mod hugr_pchannel; mod hugr_pqueue; pub mod log; -#[cfg(feature = "pyo3")] -#[cfg(feature = "portmatching")] +#[cfg(all(feature = "pyo3", feature = "portmatching"))] pub mod pyo3; mod qtz_circuit; mod worker; diff --git a/src/utils.rs b/src/utils.rs index f734fa0d..367e5d1f 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -29,7 +29,7 @@ mod pyo3 { } } #[cfg(feature = "pyo3")] -pub(crate) use pyo3::pyobj_as_hugr; +pub(crate) use self::pyo3::pyobj_as_hugr; // utility for building simple qubit-only circuits. #[allow(unused)]