Skip to content

Commit c8a3db8

Browse files
committed
Minor cleanup.
1 parent 1149f68 commit c8a3db8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/cargo/core/resolver/features.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,6 @@ impl<'a, 'cfg> FeatureResolver<'a, 'cfg> {
475475
// Activate the crate on self.
476476
let fv = FeatureValue::Crate {
477477
dep_name: *dep_name,
478-
// explicit: *explicit,
479478
};
480479
self.activate_fv(pkg_id, &fv, for_host)?;
481480
if !explicit {

src/cargo/core/summary.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ impl FeatureValue {
350350
Some(pos) => {
351351
let (dep, dep_feat) = feature.split_at(pos);
352352
let dep_feat = &dep_feat[1..];
353-
let (dep, explicit) = if dep.starts_with("crate:") {
354-
(&dep[6..], true)
353+
let (dep, explicit) = if let Some(dep) = dep.strip_prefix("crate:") {
354+
(dep, true)
355355
} else {
356356
(dep, false)
357357
};

0 commit comments

Comments
 (0)