Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
djeedai committed Oct 17, 2024
1 parent ef379b0 commit df4020c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modifier/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,8 @@ impl<'a> EvalContext for ShaderWriter<'a> {
if let Some(s) = self.expr_cache.get(&handle) {
Ok(s.clone())
} else {
module.try_get(handle)?.eval(module, self).map(|s| {
module.try_get(handle)?.eval(module, self).inspect(|s| {
self.expr_cache.insert(handle, s.clone());
s
})
}
}
Expand Down Expand Up @@ -477,9 +476,8 @@ impl<'a> EvalContext for RenderContext<'a> {
if let Some(s) = self.expr_cache.get(&handle) {
Ok(s.clone())
} else {
module.try_get(handle)?.eval(module, self).map(|s| {
module.try_get(handle)?.eval(module, self).inspect(|s| {
self.expr_cache.insert(handle, s.clone());
s
})
}
}
Expand Down

0 comments on commit df4020c

Please sign in to comment.