@@ -29,20 +29,20 @@ fn check_go_version(go_path: &PathBuf) -> Result<()> {
2929 if let Some ( ( major, minor, patch) ) = semver {
3030 // TODO: there might be a patch number correlated with wasip3.
3131 if major == 1 && minor >= 25 {
32- return Ok ( ( ) ) ;
32+ Ok ( ( ) )
3333 } else {
34- return Err ( anyhow ! (
34+ Err ( anyhow ! (
3535 "Go version is not valid. Expected '^1.25.0', found '{}.{}.{}'" ,
3636 major,
3737 minor,
3838 patch
39- ) ) ;
39+ ) )
4040 }
4141 } else {
42- return Err ( anyhow ! (
42+ Err ( anyhow ! (
4343 "Failed to parse Go version from: {}" ,
4444 version_string
45- ) ) ;
45+ ) )
4646 }
4747}
4848
@@ -61,8 +61,8 @@ pub fn core_module_to_component(wasm_file: &PathBuf) -> Result<()> {
6161 . encode ( )
6262 . context ( "failed to encode component from module" ) ?;
6363
64- std:: fs:: write ( & wasm_file, bytes)
65- . context ( format ! ( "failed to write `{}`" , & wasm_file. display( ) ) ) ?;
64+ std:: fs:: write ( wasm_file, bytes)
65+ . context ( format ! ( "failed to write `{}`" , wasm_file. display( ) ) ) ?;
6666
6767 Ok ( ( ) )
6868}
@@ -75,15 +75,15 @@ pub fn embed_wit(
7575 all_features : bool ,
7676) -> Result < ( ) > {
7777 let mut wasm = wat:: Parser :: new ( ) . parse_file ( wasm_file) ?;
78- let ( resolve, world_id) = parse_wit ( & wit_path, world, features, all_features) ?;
78+ let ( resolve, world_id) = parse_wit ( wit_path, world, features, all_features) ?;
7979 wit_component:: embed_component_metadata (
8080 & mut wasm,
8181 & resolve,
8282 world_id,
8383 wit_component:: StringEncoding :: UTF8 ,
8484 ) ?;
85- std:: fs:: write ( & wasm_file, wasm)
86- . context ( format ! ( "failed to write `{}`" , & wasm_file. display( ) ) ) ?;
85+ std:: fs:: write ( wasm_file, wasm)
86+ . context ( format ! ( "failed to write `{}`" , wasm_file. display( ) ) ) ?;
8787 Ok ( ( ) )
8888}
8989
@@ -143,7 +143,7 @@ pub fn build_wasm_core_module(
143143 . args ( [
144144 "build" ,
145145 "-C" ,
146- & module_path,
146+ module_path,
147147 "-buildmode=c-shared" ,
148148 "-ldflags=-checklinkname=0" ,
149149 "-o" ,
0 commit comments