Skip to content

Commit 8a3c176

Browse files
chore(clippy): Enable implicit-clone lint
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 7ae13ba commit 8a3c176

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
@@ -88,7 +88,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
8888
))?;
8989
}
9090

91-
let sources = ReleaseFileSearch::new(path.to_path_buf()).collect_files()?;
91+
let sources = ReleaseFileSearch::new(path.clone()).collect_files()?;
9292
let files = sources
9393
.iter()
9494
.map(|source| {

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
@@ -329,7 +329,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> {
329329
&org,
330330
&project,
331331
&AssociateProguard {
332-
release_name: release_name.to_owned(),
332+
release_name: release_name.clone(),
333333
proguard_uuid: uuid.to_string(),
334334
},
335335
)?;

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)