From 6fefb4460b6ff1116259d0a5cf8646966335f307 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Tue, 15 Aug 2023 23:30:25 +0800 Subject: [PATCH] weird --- mods/dr_game/Difficult_Rocket_rs/src/src/python.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/dr_game/Difficult_Rocket_rs/src/src/python.rs b/mods/dr_game/Difficult_Rocket_rs/src/src/python.rs index 5adce9b..b9be2b1 100644 --- a/mods/dr_game/Difficult_Rocket_rs/src/src/python.rs +++ b/mods/dr_game/Difficult_Rocket_rs/src/src/python.rs @@ -51,6 +51,10 @@ pub mod data { pub data: SR1PartType, } + impl PySR1PartType { + pub fn new(data: SR1PartType) -> Self { Self { data } } + } + #[pymethods] impl PySR1PartType { #[getter] @@ -81,10 +85,6 @@ pub mod data { fn get_type(&self) -> String { self.data.p_type.into() } } - impl PySR1PartType { - pub fn new(data: SR1PartType) -> Self { Self { data } } - } - #[pyclass] #[derive(Clone, Debug)] #[pyo3(name = "SR1PartList_rs")]