Merge pull request #5 from Stebalien/no-clone
Don't unecessarily clone vec
This commit is contained in:
commit
3963fa916d
|
@ -184,7 +184,7 @@ impl QrCode {
|
||||||
/// Converts the QR code to a vector of booleans. Each entry represents the
|
/// 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.
|
/// color of the module, with "true" means dark and "false" means light.
|
||||||
pub fn into_vec(self) -> Vec<bool> {
|
pub fn into_vec(self) -> Vec<bool> {
|
||||||
self.content.clone()
|
self.content
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue