Skip to content

Commit 3d032bc

Browse files
committed
chore: fix warnings
1 parent 3ab446e commit 3d032bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

glslt/src/transform.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn transform_unit<'a, T: TransformUnit>(
3535
asts: impl std::iter::Iterator<Item = &'a TranslationUnit>,
3636
inst: &mut T,
3737
) -> Result<()> {
38-
for (_id, ast) in asts.enumerate() {
38+
for ast in asts {
3939
// We clone all declarations since they all have somewhere to go
4040
for extdecl in ast.0.iter().cloned() {
4141
inst.parse_external_declaration(extdecl)?;

glslt/src/transform/min_unit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl MinUnit {
112112
self.dag
113113
.into_dependencies(&wanted)
114114
.into_iter()
115-
.filter_map(|id| stored_decls.remove(&id)),
115+
.filter_map(|id| stored_decls.shift_remove(&id)),
116116
);
117117

118118
Ok(TranslationUnit(

0 commit comments

Comments
 (0)