From 6d5d404bb81ef7f75c11c9665df3613e2801b496 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 24 Jun 2020 09:09:10 +0200 Subject: Remove redundant clone --- askama_shared/src/filters/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/askama_shared/src/filters/mod.rs b/askama_shared/src/filters/mod.rs index 55ba84b..2604ed9 100644 --- a/askama_shared/src/filters/mod.rs +++ b/askama_shared/src/filters/mod.rs @@ -475,7 +475,7 @@ mod tests { join((&input).iter(), ":".to_string()).unwrap(), "foo:bar:bazz" ); - assert_eq!(join(input.clone().iter(), ":").unwrap(), "foo:bar:bazz"); + assert_eq!(join(input.iter(), ":").unwrap(), "foo:bar:bazz"); assert_eq!(join(input.iter(), ":".to_string()).unwrap(), "foo:bar:bazz"); let input: &[String] = &["foo".into(), "bar".into()]; -- cgit