1 error: calling `Arc::new` in `vec![elem; len]`
4 LL | let v = vec![Arc::new("x".to_string()); 2];
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::rc-clone-in-vec-init` implied by `-D warnings`
8 = note: each element will point to the same `Arc` instance
9 help: consider initializing each `Arc` element individually
12 LL + let mut v = Vec::with_capacity(2);
13 LL + (0..2).for_each(|_| v.push(Arc::new("x".to_string())));
17 help: or if this is intentional, consider extracting the `Arc` initialization to a variable
20 LL + let data = Arc::new("x".to_string());
25 error: calling `Arc::new` in `vec![elem; len]`
30 LL | | std::sync::Arc::new(Mutex::new({
38 = note: each element will point to the same `Arc` instance
39 help: consider initializing each `Arc` element individually
42 LL + let mut v = Vec::with_capacity(2);
43 LL + (0..2).for_each(|_| v.push(std::sync::Arc::new(..)));
47 help: or if this is intentional, consider extracting the `Arc` initialization to a variable
50 LL + let data = std::sync::Arc::new(..);
55 error: calling `Arc::new` in `vec![elem; len]`
60 LL | | Arc::new(Mutex::new({
68 = note: each element will point to the same `Arc` instance
69 help: consider initializing each `Arc` element individually
72 LL + let mut v = Vec::with_capacity(2);
73 LL + (0..2).for_each(|_| v.push(Arc::new(..)));
77 help: or if this is intentional, consider extracting the `Arc` initialization to a variable
80 LL + let data = Arc::new(..);
85 error: aborting due to 3 previous errors