Skip to content

Commit eeae12c

Browse files
authored
Merge pull request #23 from sigurpol/remove-clone-on-reference
Fix warning: remove unnecessary .clone()
2 parents a7f94c6 + d26d6cb commit eeae12c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
override: true
2323

2424
- name: Cache Dependencies & Build Outputs
25-
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
25+
uses: actions/cache@v4.2.3
2626
with:
2727
path: |
2828
~/.cargo/registry

src/patches.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ fn extract_patched_crates_and_adjust_toml<F: Fn(PathBuf) -> Result<PathBuf, Stri
114114
for inline_crate_table in patched_paths {
115115
// We only act if there is a path given for a crate
116116
if let Some(path) = inline_crate_table.get("path") {
117-
let path = PathBuf::from(
118-
path.as_str()
119-
.ok_or("Unable to get path from toml Value")?
120-
.clone(),
121-
);
117+
let path = PathBuf::from(path.as_str().ok_or("Unable to get path from toml Value")?);
122118

123119
// Check if the current crate is located in a subfolder of a workspace we
124120
// already know.

0 commit comments

Comments
 (0)