diff --git a/libs/Difficult_Rocket_rs/src/src/sr1_data.rs b/libs/Difficult_Rocket_rs/src/src/sr1_data.rs index 15b3ecf..a2edc80 100644 --- a/libs/Difficult_Rocket_rs/src/src/sr1_data.rs +++ b/libs/Difficult_Rocket_rs/src/src/sr1_data.rs @@ -326,7 +326,7 @@ pub mod part_list { } impl RawPartList { - pub fn new(parts: Vec) -> Self { + pub fn new(parts: Vec) -> Self { RawPartList { part_types: parts } } diff --git a/libs/Difficult_Rocket_rs/src/src/types.rs b/libs/Difficult_Rocket_rs/src/src/types.rs index 8d64d65..77acc74 100644 --- a/libs/Difficult_Rocket_rs/src/src/types.rs +++ b/libs/Difficult_Rocket_rs/src/src/types.rs @@ -228,7 +228,7 @@ pub mod sr1 { fn to_raw_part_list(&self) -> RawPartList { let mut types: Vec = Vec::new(); - for part_type in self.types { + for part_type in self.types.iter() { types.insert(0, part_type.to_raw_part_type()); } RawPartList::new(types)