Skip to content

Commit dad6d7b

Browse files
chore(clippy): Enable implicit-clone lint (#2904)
### Description Enable `implicit-clone` lint and disable the `string-to-string` lint, as `implicit-clone` now also lints `to_string` calls, making `string-to-string` redundant. See https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#enhancements
1 parent aa4661b commit dad6d7b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ with_crash_reporting = []
9999
allow-attributes = "warn"
100100
dbg-macro = "warn"
101101
elidable-lifetime-names = "warn"
102+
implicit-clone = "warn"
102103
str-to-string = "warn"
103-
string-to-string = "warn"
104104
tests-outside-test-module = "warn"
105105
unnecessary-wraps = "warn"
106106
uninlined-format-args = "warn"

src/commands/debug_files/bundle_jvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
7575
))?;
7676
}
7777

78-
let sources = ReleaseFileSearch::new(path.to_path_buf()).collect_files()?;
78+
let sources = ReleaseFileSearch::new(path.clone()).collect_files()?;
7979
let files = sources.iter().map(|source| {
8080
let local_path = source.path.strip_prefix(&source.base_path).unwrap();
8181
let local_path_jvm_ext = local_path.with_extension("jvm");

src/commands/debug_files/find.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ where
324324
{
325325
ids.filter_map(|id| {
326326
if remaining.contains(&id) {
327-
return Some((id.to_owned(), t));
327+
return Some((id, t));
328328
}
329329
None
330330
})

src/commands/upload_proguard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
332332
&org,
333333
&project,
334334
&AssociateProguard {
335-
release_name: release_name.to_owned(),
335+
release_name: release_name.clone(),
336336
proguard_uuid: uuid.to_string(),
337337
},
338338
)?;

src/utils/xcode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fn get_xcode_project_info(path: &Path) -> Result<Option<XcodeProjectInfo>> {
9393
for entry in (fs::read_dir(path)?).flatten() {
9494
if let Some(filename) = entry.file_name().to_str() {
9595
if filename.ends_with(".xcodeproj") {
96-
projects.push(entry.path().to_path_buf());
96+
projects.push(entry.path().clone());
9797
}
9898
}
9999
}

0 commit comments

Comments
 (0)