Remove | unuse import

This commit is contained in:
shenjack 2023-12-22 00:04:31 +08:00
parent 4111a39ecb
commit 0a1a6adce1
Signed by: shenjack
GPG Key ID: 7B1134A979775551
3 changed files with 2 additions and 6 deletions

View File

@ -11,7 +11,7 @@ use rapier2d_f64::prelude::*;
#[pyfunction]
#[pyo3(name = "simulation")]
pub fn simulation() -> () {
pub fn simulation() {
let mut rigid_body_set = RigidBodySet::new();
let mut collider_set = ColliderSet::new();

View File

@ -1,4 +1,3 @@
use std::error::Error;
use std::fs;
use pyo3::prelude::*;
@ -7,10 +6,8 @@ use serde::{Deserialize, Serialize};
use serde_xml_rs::from_str;
use serde_xml_rs::Error as XmlError;
use super::part_list::SR1PartTypeEnum;
use crate::data_type::sr1::{IdType, SR1PartData, SR1PartDataAttr, SR1Ship};
use crate::data_type::sr1::{SR1PartDataTrait, SR1PartTypeAttr, SR1ShipTrait};
use crate::data_type::sr1::{SR1PartDataTrait, SR1ShipTrait};
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename = "Ship")]

View File

@ -1,7 +1,6 @@
use std::io;
use fs_err as fs;
use xml::reader::*;
// Input the directory of the xml file.
// If file does not exsit or not the XML file, return errors or return file handle.