Update common/credentials/src/bandwidth.rs

Co-authored-by: Jędrzej Stuczyński <jedrzej.stuczynski@gmail.com>
This commit is contained in:
AniaPiotrowska
2021-11-03 20:32:24 +00:00
committed by GitHub
parent 36d8502fed
commit 87c8b512b0
+1 -4
View File
@@ -38,10 +38,7 @@ pub struct BandwidthVoucherAttributes {
impl BandwidthVoucherAttributes {
pub fn get_public_attributes(&self) -> Vec<PublicAttribute> {
let mut pub_attributes = Vec::with_capacity(PUBLIC_ATTRIBUTES as usize);
pub_attributes.push(self.voucher_value);
pub_attributes.push(self.voucher_info);
pub_attributes
vec![self.voucher_value, self.voucher_info]
}
pub fn get_private_attributes(&self) -> Vec<PrivateAttribute> {