11error: manual implementation of `str::repeat` using iterators
2- --> $DIR/manual_str_repeat.rs:7 :21
2+ --> $DIR/manual_str_repeat.rs:8 :21
33 |
44LL | let _: String = std::iter::repeat("test").take(10).collect();
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"test".repeat(10)`
@@ -8,55 +8,55 @@ LL | let _: String = std::iter::repeat("test").take(10).collect();
88 = help: to override `-D warnings` add `#[allow(clippy::manual_str_repeat)]`
99
1010error: manual implementation of `str::repeat` using iterators
11- --> $DIR/manual_str_repeat.rs:8 :21
11+ --> $DIR/manual_str_repeat.rs:9 :21
1212 |
1313LL | let _: String = std::iter::repeat('x').take(10).collect();
1414 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"x".repeat(10)`
1515
1616error: manual implementation of `str::repeat` using iterators
17- --> $DIR/manual_str_repeat.rs:9 :21
17+ --> $DIR/manual_str_repeat.rs:10 :21
1818 |
1919LL | let _: String = std::iter::repeat('\'').take(10).collect();
2020 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"'".repeat(10)`
2121
2222error: manual implementation of `str::repeat` using iterators
23- --> $DIR/manual_str_repeat.rs:10 :21
23+ --> $DIR/manual_str_repeat.rs:11 :21
2424 |
2525LL | let _: String = std::iter::repeat('"').take(10).collect();
2626 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"\"".repeat(10)`
2727
2828error: manual implementation of `str::repeat` using iterators
29- --> $DIR/manual_str_repeat.rs:14 :13
29+ --> $DIR/manual_str_repeat.rs:15 :13
3030 |
3131LL | let _ = repeat(x).take(count + 2).collect::<String>();
3232 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `x.repeat(count + 2)`
3333
3434error: manual implementation of `str::repeat` using iterators
35- --> $DIR/manual_str_repeat.rs:23 :21
35+ --> $DIR/manual_str_repeat.rs:24 :21
3636 |
3737LL | let _: String = repeat(*x).take(count).collect();
3838 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*x).repeat(count)`
3939
4040error: manual implementation of `str::repeat` using iterators
41- --> $DIR/manual_str_repeat.rs:32 :21
41+ --> $DIR/manual_str_repeat.rs:33 :21
4242 |
4343LL | let _: String = repeat(x).take(count).collect();
4444 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `x.repeat(count)`
4545
4646error: manual implementation of `str::repeat` using iterators
47- --> $DIR/manual_str_repeat.rs:44 :21
47+ --> $DIR/manual_str_repeat.rs:45 :21
4848 |
4949LL | let _: String = repeat(Cow::Borrowed("test")).take(count).collect();
5050 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Cow::Borrowed("test").repeat(count)`
5151
5252error: manual implementation of `str::repeat` using iterators
53- --> $DIR/manual_str_repeat.rs:47 :21
53+ --> $DIR/manual_str_repeat.rs:48 :21
5454 |
5555LL | let _: String = repeat(x).take(count).collect();
5656 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `x.repeat(count)`
5757
5858error: manual implementation of `str::repeat` using iterators
59- --> $DIR/manual_str_repeat.rs:62 :21
59+ --> $DIR/manual_str_repeat.rs:63 :21
6060 |
6161LL | let _: String = std::iter::repeat("test").take(10).collect();
6262 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"test".repeat(10)`
0 commit comments