Remove redundant clone

This commit is contained in:
Agatha 2020-03-29 21:56:27 +03:00
parent 671c169dd7
commit 5f99d32c1e
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ impl OwOifiable for String {
fn owoify(&self) -> Self { fn owoify(&self) -> Self {
let mut rng = rand::thread_rng(); let mut rng = rand::thread_rng();
let faces = ["(・`ω´・)", "OwO", "owo", "oωo", "òωó", "°ω°", "UwU", ">w<", "^w^"]; let faces = ["(・`ω´・)", "OwO", "owo", "oωo", "òωó", "°ω°", "UwU", ">w<", "^w^"];
let face = &format!(" {} ", faces[rng.gen_range(0, faces.len())]).to_owned(); let face = &format!(" {} ", faces[rng.gen_range(0, faces.len())]);
let pats: Vec<(&str, &str)> = vec![ let pats: Vec<(&str, &str)> = vec![
("(?:r|l)", "w"), ("(?:r|l)", "w"),
("(?:R|L)", "W"), ("(?:R|L)", "W"),