From fa5cd831e4b9f9e868839c170f78ba228ed1f00c Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Sat, 11 Jul 2020 23:54:34 +1000 Subject: [PATCH] Minor Python cleanup --- python/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/src/lib.rs b/python/src/lib.rs index a4c3642..b9625b6 100644 --- a/python/src/lib.rs +++ b/python/src/lib.rs @@ -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 { @@ -17,7 +16,7 @@ fn minify(code: String, minify_js: bool) -> PyResult { } #[pymodule] -fn hyperbuild(py: Python, m: &PyModule) -> PyResult<()> { +fn hyperbuild(_py: Python, m: &PyModule) -> PyResult<()> { m.add_wrapped(wrap_pyfunction!(minify))?; Ok(())