Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

Clippy

+9 -9
+2 -2
compiler-cli/src/dependencies.rs
··· 1482 1482 match provided.get(&package_name) { 1483 1483 Some(package) if package.source == package_source => { 1484 1484 // This package has already been provided from this source, return the version 1485 - let version = hexpm::version::Range::new(format!("== {}", &package.version)) 1485 + let version = hexpm::version::Range::new(format!("== {}", package.version)) 1486 1486 .expect("== {version} should be a valid range"); 1487 1487 return Ok(version); 1488 1488 } ··· 1574 1574 } 1575 1575 let _ = parents.pop(); 1576 1576 // Add the package to the provided packages dictionary 1577 - let version = hexpm::version::Range::new(format!("== {}", &config.version)) 1577 + let version = hexpm::version::Range::new(format!("== {}", config.version)) 1578 1578 .expect("== {version} should be a valid range"); 1579 1579 let _ = provided.insert( 1580 1580 config.name,
+1 -1
compiler-cli/src/export.rs
··· 225 225 " 226 226 Your hex tarball has been generated in {}. 227 227 ", 228 - &path 228 + path 229 229 ); 230 230 Ok(()) 231 231 }
+3 -3
compiler-cli/src/fs.rs
··· 900 900 return Some(path); 901 901 } 902 902 903 - path = match path.parent() { 904 - Some(path) => path.into(), 905 - None => return None, 903 + path = { 904 + let path = path.parent()?; 905 + path.into() 906 906 } 907 907 } 908 908 }
+3 -3
compiler-cli/src/publish.rs
··· 114 114 cli::print_published("package and documentation"); 115 115 println!( 116 116 "\nView your package at https://hex.pm/packages/{}", 117 - &config.name 117 + config.name 118 118 ); 119 119 120 120 // Prompt the user to make a git tag if they have not. ··· 262 262 value: TypedExpr::String { value, .. }, 263 263 .. 264 264 }) => { 265 - let default_argument = format!("Hello from {}!", &package_name); 265 + let default_argument = format!("Hello from {}!", package_name); 266 266 value == &default_argument 267 267 } 268 268 _ => false, ··· 339 339 println!( 340 340 "The repository configuration in your `gleam.toml` file does not appear to be 341 341 valid, {} returned status {}", 342 - &url, 342 + url, 343 343 response.status() 344 344 ); 345 345 let should_publish = i_am_sure || cli::confirm("\nDo you wish to continue?")?;