Skip to content

Commit da624d1

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

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

crates/spirv-builder/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,8 @@ 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> {
639-
let metadata_file = invoke_rustc(&self)?;
638+
pub fn build(&self) -> Result<CompileResult, SpirvBuilderError> {
639+
let metadata_file = invoke_rustc(self)?;
640640
match self.print_metadata {
641641
MetadataPrintout::Full | MetadataPrintout::DependencyOnly => {
642642
leaf_deps(&metadata_file, |artifact| {

0 commit comments

Comments
 (0)