diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2019-04-11 13:48:13 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2019-04-11 13:48:13 +0200 |
| commit | 4352681d624bcbfb9d5aa9d2f5057091622402a6 (patch) | |
| tree | 8f29b9f5722b9330192f7451623702fffeb598b1 /src/git-rustfmt | |
| parent | 896394a7a5fdec00851f4034cff98574456d23aa (diff) | |
fix clippy warnings
clippy::needless_return clippy::redundant_closure clippy::or_fun_call clippy::len_zero clippy::expect_fun_call clippy::assertions_on_constants clippy::identity_conversion clippy::chars_last_cmp
Diffstat (limited to 'src/git-rustfmt')
| -rw-r--r-- | src/git-rustfmt/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git-rustfmt/main.rs b/src/git-rustfmt/main.rs index 67b641a384d..f71ae097808 100644 --- a/src/git-rustfmt/main.rs +++ b/src/git-rustfmt/main.rs @@ -98,7 +98,7 @@ fn uncommitted_files() -> Vec<String> { stdout .lines() .filter(|s| s.ends_with(".rs")) - .map(|s| s.to_owned()) + .map(std::borrow::ToOwned::to_owned) .collect() } |
