Skip to content

Commit 98c0334

Browse files
committed
all: Fix warnings from clippy::unnecessary_to_owned
1 parent eb4e385 commit 98c0334

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graph/src/components/link_resolver/file.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ impl FileLinkResolver {
7676
// Create a path to the manifest based on the current resolver's
7777
// base directory or default to using the deployment string as path
7878
// If the deployment string is an alias, use the aliased path
79-
let manifest_path = if let Some(aliased) = self.aliases.get(&manifest_path_str.to_string())
80-
{
79+
let manifest_path = if let Some(aliased) = self.aliases.get(manifest_path_str) {
8180
aliased.clone()
8281
} else {
8382
match &resolver.base_dir {

0 commit comments

Comments
 (0)