Skip to content

Commit c733a58

Browse files
committed
fixes
1 parent a91f51f commit c733a58

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/rust_project.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ pub(crate) struct BuildInfo {
259259
target_kind: TargetKind,
260260
}
261261

262-
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Hash)]
262+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
263263
#[serde(rename_all = "camelCase")]
264264
pub enum TargetKind {
265265
Bin,
@@ -496,6 +496,8 @@ impl PackageGraph {
496496
.enumerate()
497497
.filter_map(|(i, target)| {
498498
matches!(TargetKind::new(&target.kind), TargetKind::Lib)
499+
// I *think* this is the right way to handle target names in this
500+
// context...
499501
.then(|| (crates.len() + i, target.name.clone().replace('-', "_")))
500502
})
501503
.collect();

0 commit comments

Comments
 (0)