Skip to content

Commit

Permalink
chore: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alixinne committed Aug 19, 2024
1 parent 3ab446e commit 3d032bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glslt/src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn transform_unit<'a, T: TransformUnit>(
asts: impl std::iter::Iterator<Item = &'a TranslationUnit>,
inst: &mut T,
) -> Result<()> {
for (_id, ast) in asts.enumerate() {
for ast in asts {
// We clone all declarations since they all have somewhere to go
for extdecl in ast.0.iter().cloned() {
inst.parse_external_declaration(extdecl)?;
Expand Down
2 changes: 1 addition & 1 deletion glslt/src/transform/min_unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl MinUnit {
self.dag
.into_dependencies(&wanted)
.into_iter()
.filter_map(|id| stored_decls.remove(&id)),
.filter_map(|id| stored_decls.shift_remove(&id)),
);

Ok(TranslationUnit(
Expand Down

0 comments on commit 3d032bc

Please sign in to comment.