Minor Python cleanup
This commit is contained in:
parent
b8fa10879a
commit
fa5cd831e4
|
@ -3,7 +3,6 @@ use pyo3::prelude::*;
|
||||||
use pyo3::exceptions::SyntaxError;
|
use pyo3::exceptions::SyntaxError;
|
||||||
use pyo3::wrap_pyfunction;
|
use pyo3::wrap_pyfunction;
|
||||||
use std::str::from_utf8_unchecked;
|
use std::str::from_utf8_unchecked;
|
||||||
use pyo3::types::PyTuple;
|
|
||||||
|
|
||||||
#[pyfunction(py_args="*", minify_js="false")]
|
#[pyfunction(py_args="*", minify_js="false")]
|
||||||
fn minify(code: String, minify_js: bool) -> PyResult<String> {
|
fn minify(code: String, minify_js: bool) -> PyResult<String> {
|
||||||
|
@ -17,7 +16,7 @@ fn minify(code: String, minify_js: bool) -> PyResult<String> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pymodule]
|
#[pymodule]
|
||||||
fn hyperbuild(py: Python, m: &PyModule) -> PyResult<()> {
|
fn hyperbuild(_py: Python, m: &PyModule) -> PyResult<()> {
|
||||||
m.add_wrapped(wrap_pyfunction!(minify))?;
|
m.add_wrapped(wrap_pyfunction!(minify))?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue