Explorar el Código

Improve one var name

Joshua Kifer hace 3 años
padre
commit
f0fe62e4d5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/config.rs

+ 1 - 1
src/config.rs

@@ -144,7 +144,7 @@ impl CrateConfig {
             .bin
             .first()
             .or(manifest.lib.as_ref())
-            .and_then(|lib| lib.name.clone())
+            .and_then(|product| product.name.clone())
             .or_else(|| manifest.package.as_ref().map(|pkg| pkg.name.clone()))
             .expect("No lib found from cargo metadata");
         let executable = ExecutableType::Binary(output_filename);