Skip to content

Commit

Permalink
Patch mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
hakolao committed May 12, 2024
1 parent 79b3a98 commit efb4086
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ impl WatchedShaderModule {
) -> Result<(), ShaderError> {
if self.original_source.is_none() {
self.original_source = Some(self.source.clone());
} else {
self.source = modify_fn(self.original_source.as_ref().unwrap())?;
}
self.source = modify_fn(self.original_source.as_ref().unwrap())?;
self.reload()
}

Expand Down Expand Up @@ -596,7 +595,7 @@ const TEST: u32 = u32(1);
const TEST2: u32 = u32(2);
"#
.to_string();
.to_string();
assert_eq!(result.source, should_be);
}

Expand Down

0 comments on commit efb4086

Please sign in to comment.