Don't unecessarily clone vec

This commit is contained in:
Steven Allen 2016-05-16 09:42:23 -04:00
parent 0435a75244
commit 5cd10d5f87

View file

@ -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<bool> {
self.content.clone()
self.content
}
}