Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cargo_shim/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -899,10 +899,10 @@ impl BuildConfig {
let wasm_path = {
let main_artifact = Path::new( &artifacts[ artifact_index ].filenames[ filename_index ] );
let filename = main_artifact.file_name().unwrap();
main_artifact.parent().unwrap().join( "deps" ).join( filename ).with_extension( "wasm" )
main_artifact.parent().unwrap().join( filename ).with_extension( "wasm" )
};

assert!( wasm_path.exists(), "internal error: wasm doesn't exist where I expected it to be" );
assert!(wasm_path.exists(), "internal error: wasm doesn't exist at {:?}", wasm_path);
artifacts[ artifact_index ].filenames.push( wasm_path.to_str().unwrap().to_owned() );
debug!( "Found `.wasm` test artifact: {:?}", wasm_path );
}
Expand Down