Skip to content

Commit aed816d

Browse files
committed
compile_codegen: make SpirvBuilder::build() no longer consume self
1 parent 9a9ebc1 commit aed816d

File tree

1 file changed

+1
-1
lines changed
  • crates/spirv-builder/src

1 file changed

+1
-1
lines changed

crates/spirv-builder/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ impl SpirvBuilder {
635635

636636
/// Builds the module. If `print_metadata` is [`MetadataPrintout::Full`], you usually don't have to inspect the path
637637
/// in the result, as the environment variable for the path to the module will already be set.
638-
pub fn build(self) -> Result<CompileResult, SpirvBuilderError> {
638+
pub fn build(&self) -> Result<CompileResult, SpirvBuilderError> {
639639
let metadata_file = invoke_rustc(&self)?;
640640
match self.print_metadata {
641641
MetadataPrintout::Full | MetadataPrintout::DependencyOnly => {

0 commit comments

Comments
 (0)