We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ce2435 commit 3e29a28Copy full SHA for 3e29a28
crates/cli/src/lib.rs
@@ -4,7 +4,7 @@
4
mod ext;
5
6
use anyhow::{bail, Context, Result as AResult};
7
-use cargo_metadata::{camino::Utf8PathBuf, Target};
+use cargo_metadata::{camino::Utf8PathBuf, CrateType, Target};
8
use clap::Parser;
9
use dialoguer::{Confirm, Select};
10
@@ -433,7 +433,7 @@ fn find_ext(manifest: &Option<PathBuf>) -> AResult<cargo_metadata::Target> {
433
target
434
.crate_types
435
.iter()
436
- .any(|ty| ty == "dylib" || ty == "cdylib")
+ .any(|ty| ty == &CrateType::DyLib || ty == &CrateType::CDyLib)
437
})
438
.collect();
439
0 commit comments