From 5cd10d5f879390f07e50e2b5f530e5f04600e25f Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 16 May 2016 09:42:23 -0400 Subject: [PATCH] Don't unecessarily clone vec --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a172b95..b616cfc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -184,7 +184,7 @@ impl QrCode { /// Converts the QR code to a vector of booleans. Each entry represents the /// color of the module, with "true" means dark and "false" means light. pub fn into_vec(self) -> Vec { - self.content.clone() + self.content } }