Skip to content

Commit

Permalink
Updating the crates image and itertools (#70)
Browse files Browse the repository at this point in the history
only minor code changes were necessary
  • Loading branch information
SwishSwushPow authored Nov 9, 2024
1 parent 262ffc0 commit a5c5bd5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ byteorder = "1.3.4"
chrono = { version= "0.4.19", features = ["serde"] }
encoding_rs = "0.8.26"
enum_primitive = "0.1.1"
image = "0.24"
itertools = "0.11"
image = "0.25.1"
itertools = "0.13.0"
num = "0.4"
serde = { version = "1.0", features = ["derive"], optional = true }
uuid = { version = "1.3.3", features = ["serde", "v4"] }
Expand Down
2 changes: 1 addition & 1 deletion src/dxb_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl<T: Write> DxbWriter<T> {
if writing_block {
self.write_entities(&drawing.blocks().next().unwrap().entities)?;
} else {
let groups = drawing.entities().group_by(|&e| e.common.layer.clone());
let groups = drawing.entities().chunk_by(|&e| e.common.layer.clone());
for (layer, entities) in &groups {
self.write_item_type(DxbItemType::NewLayer)?;
self.write_null_terminated_string(&layer)?;
Expand Down
4 changes: 3 additions & 1 deletion src/entity_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ where
specific: EntityType::Seqend(_),
..
}) => (),
Some(ent) => iter.put_back(ent),
Some(ent) => {
iter.put_back(ent);
}
None => (),
}

Expand Down

0 comments on commit a5c5bd5

Please sign in to comment.