From aa9475b1f41c4c23657ede560142871d7f10cbe7 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 23 Dec 2023 00:32:38 +0800 Subject: [PATCH] i128 -> i64 --- mods/dr_game/Difficult_Rocket_rs/src/src/data_type.rs | 2 +- .../Difficult_Rocket_rs/src/src/python/editor.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/dr_game/Difficult_Rocket_rs/src/src/data_type.rs b/mods/dr_game/Difficult_Rocket_rs/src/src/data_type.rs index 20d5741..3756eb5 100644 --- a/mods/dr_game/Difficult_Rocket_rs/src/src/data_type.rs +++ b/mods/dr_game/Difficult_Rocket_rs/src/src/data_type.rs @@ -10,4 +10,4 @@ pub mod dr; pub mod math; pub mod sr1; -pub type IdType = i128; +pub type IdType = i64; diff --git a/mods/dr_game/Difficult_Rocket_rs/src/src/python/editor.rs b/mods/dr_game/Difficult_Rocket_rs/src/src/python/editor.rs index 56f78d3..7b31069 100644 --- a/mods/dr_game/Difficult_Rocket_rs/src/src/python/editor.rs +++ b/mods/dr_game/Difficult_Rocket_rs/src/src/python/editor.rs @@ -77,7 +77,7 @@ impl EditorArea { } else { continue; } - }, + } // 三角形 EditorShapeEnum::Triangle(dir1, dir2) => { // 先平移坐标系 @@ -92,7 +92,7 @@ impl EditorArea { } else { continue; } - }, + } EditorShapeEnum::Compound(shapes) => { for shape in shapes { match shape { @@ -117,7 +117,7 @@ impl EditorArea { } else { continue; } - }, + } // 三角形 EditorShapeEnum::Triangle(dir1, dir2) => { // 先平移坐标系 @@ -132,10 +132,10 @@ impl EditorArea { } else { continue; } - }, + } EditorShapeEnum::Compound(_) => { panic!("Compound in Compound"); - }, + } } } }