Merge pull request #5 from Stebalien/no-clone

Don't unecessarily clone vec
This commit is contained in:
kennytm 2016-05-16 22:18:13 +08:00
commit 3963fa916d

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
}
}