Skip to content

Commit 1149f68

Browse files
committed
Some minor cleanup.
1 parent b2cceaf commit 1149f68

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cargo/core/resolver/errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ pub(super) fn activation_error(
124124
msg.push_str("\n\nthe package `");
125125
msg.push_str(&*dep.package_name());
126126
msg.push_str("` links to the native library `");
127-
msg.push_str(&link);
127+
msg.push_str(link);
128128
msg.push_str("`, but it conflicts with a previous package which links to `");
129-
msg.push_str(&link);
129+
msg.push_str(link);
130130
msg.push_str("` as well:\n");
131131
msg.push_str(&describe_path(&cx.parents.path_to_bottom(p)));
132132
}

src/cargo/ops/tree/graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ fn add_pkg(
305305
};
306306
let node = Node::Package {
307307
package_id,
308-
features: node_features.clone(),
308+
features: node_features,
309309
kind: node_kind,
310310
};
311311
if let Some(idx) = graph.index.get(&node) {

0 commit comments

Comments
 (0)