fix: RawPartType not RawPartList and add .iter
This commit is contained in:
parent
3bfcdd9feb
commit
c928809a92
@ -326,7 +326,7 @@ pub mod part_list {
|
||||
}
|
||||
|
||||
impl RawPartList {
|
||||
pub fn new(parts: Vec<RawPart>) -> Self {
|
||||
pub fn new(parts: Vec<RawPartType>) -> Self {
|
||||
RawPartList { part_types: parts }
|
||||
}
|
||||
|
||||
|
@ -228,7 +228,7 @@ pub mod sr1 {
|
||||
|
||||
fn to_raw_part_list(&self) -> RawPartList {
|
||||
let mut types: Vec<RawPartType> = 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)
|
||||
|
Loading…
Reference in New Issue
Block a user