Improve one var name

This commit is contained in:
Joshua Kifer committed 2022-03-26 19:22:09 -06:00
1 parent 3f197507ba
commit f0fe62e4d5
1 file changed
+1 -1
+1 -1
View File
@@ -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);