Minor Python cleanup

This commit is contained in:
Wilson Lin 2020-07-11 23:54:34 +10:00
parent b8fa10879a
commit fa5cd831e4
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ use pyo3::prelude::*;
use pyo3::exceptions::SyntaxError;
use pyo3::wrap_pyfunction;
use std::str::from_utf8_unchecked;
use pyo3::types::PyTuple;
#[pyfunction(py_args="*", minify_js="false")]
fn minify(code: String, minify_js: bool) -> PyResult<String> {
@ -17,7 +16,7 @@ fn minify(code: String, minify_js: bool) -> PyResult<String> {
}
#[pymodule]
fn hyperbuild(py: Python, m: &PyModule) -> PyResult<()> {
fn hyperbuild(_py: Python, m: &PyModule) -> PyResult<()> {
m.add_wrapped(wrap_pyfunction!(minify))?;
Ok(())