Skip to content

Commit 0d5311c

Browse files
committed
chore(python): Update pyo3_built
1 parent cd70af1 commit 0d5311c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/python/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ use css_inline as rust_inline;
2727
use pyo3::{create_exception, exceptions, prelude::*, types::PyList, wrap_pyfunction};
2828
use rayon::prelude::*;
2929
use std::borrow::Cow;
30+
#[macro_use]
31+
extern crate pyo3_built;
3032

3133
const INLINE_ERROR_DOCSTRING: &str = "An error that can occur during CSS inlining";
3234

@@ -194,8 +196,6 @@ fn css_inline(py: Python<'_>, module: &PyModule) -> PyResult<()> {
194196
let inline_error = py.get_type::<InlineError>();
195197
inline_error.setattr("__doc__", INLINE_ERROR_DOCSTRING)?;
196198
module.add("InlineError", inline_error)?;
197-
// Wait until `pyo3_built` is updated
198-
#[allow(deprecated)]
199199
module.add("__build__", pyo3_built::pyo3_built!(py, build))?;
200200
Ok(())
201201
}

0 commit comments

Comments
 (0)