From a5c4ae871bed01157a563d8da8b621f09e31412f Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 18 Feb 2023 14:04:55 +0800 Subject: [PATCH] update --- Difficult_Rocket/client/__init__.py | 2 +- libs/Difficult_Rocket_rs/src/src/render.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Difficult_Rocket/client/__init__.py b/Difficult_Rocket/client/__init__.py index 3f9b14a..06ce3aa 100644 --- a/Difficult_Rocket/client/__init__.py +++ b/Difficult_Rocket/client/__init__.py @@ -31,11 +31,11 @@ from pyglet.window import Window from pyglet.window import key, mouse # Difficult_Rocket function +from Difficult_Rocket.utils import tools from Difficult_Rocket.api.types import Options from Difficult_Rocket.command import line, tree from Difficult_Rocket.utils.translate import tr from Difficult_Rocket import DR_runtime, DR_option -from Difficult_Rocket.utils import tools, translate from Difficult_Rocket.utils.new_thread import new_thread from Difficult_Rocket.client.fps.fps_log import FpsLogger from Difficult_Rocket.client.guis.widgets import InputBox diff --git a/libs/Difficult_Rocket_rs/src/src/render.rs b/libs/Difficult_Rocket_rs/src/src/render.rs index e9c15d5..c4f49d7 100644 --- a/libs/Difficult_Rocket_rs/src/src/render.rs +++ b/libs/Difficult_Rocket_rs/src/src/render.rs @@ -31,7 +31,6 @@ pub mod camera { #[pymethods] impl CameraRs { #[new] - #[allow(unused_variables)] #[pyo3(signature = (window, zoom=1.0, dx=1.0, dy=1.0, min_zoom=1.0, max_zoom=1.0))] pub fn py_new(window: &PyAny, zoom: f64, dx: f64, dy: f64,min_zoom: f64, max_zoom: f64) -> PyResult { return Ok(CameraRs {dx, dy, zoom, min_zoom, max_zoom,