5 clippy::redundant_clone,
8 clippy::unnecessary_operation,
9 clippy::vec_init_then_push
12 use std::cell::RefCell;
13 use std::rc::{self, Rc};
14 use std::sync::{self, Arc};
18 fn is_ascii(ch: char) -> bool {
25 vec![1].clone(); // ok, not a Copy type
26 Some(vec![1]).clone(); // ok, not a Copy type
29 let rc = RefCell::new(0);
34 let _ = &x.clone(); // ok, getting a ref
35 'a'.clone().make_ascii_uppercase(); // ok, clone and then mutate
36 is_ascii('z'.clone());
39 let mut vec = Vec::new();