diff options
| author | Marek Barvíř <barvirm@gmail.com> | 2023-03-28 09:38:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-28 09:38:01 +0200 |
| commit | 213f31c5d71b3a5676ec8cce58204b1ac7f2cdea (patch) | |
| tree | bb0730bbc768f80eb3995b3a55d12a0f62ab3ee8 /src/util | |
| parent | dfbd3503d9a03215238ade30726651b09d6fab2d (diff) | |
Fix basic lints (cargo clippy) (#383)
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/mod.rs b/src/util/mod.rs index 3e0e7aa2..c2b23273 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -205,7 +205,7 @@ pub fn pretty_comma_list(pieces: &[impl AsRef<str>], trailing_comma: bool) -> St /// Tries to format horizontally, but falls back to vertical formatting if the /// pieces are too long. pub fn pretty_array_like(parts: &[impl AsRef<str>], trailing_comma: bool) -> String { - let list = pretty_comma_list(&parts, trailing_comma); + let list = pretty_comma_list(parts, trailing_comma); let mut buf = String::new(); buf.push('('); if list.contains('\n') { |
