From 5f99d32c1e1683dc540488aa858d0dfe28cfc549 Mon Sep 17 00:00:00 2001 From: Agatha Date: Sun, 29 Mar 2020 21:56:27 +0300 Subject: [PATCH] Remove redundant clone --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9101a89..d41c2aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,7 +35,7 @@ impl OwOifiable for String { fn owoify(&self) -> Self { let mut rng = rand::thread_rng(); 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![ ("(?:r|l)", "w"), ("(?:R|L)", "W"),