Skip to content

Commit

Permalink
Update crates/lib/src/relation.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
  • Loading branch information
mamcx and Centril authored Jul 27, 2023
1 parent 8d17ff6 commit ee72b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/lib/src/relation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ impl Header {
/// renaming duplicated fields with a counter like `a, a => a, a0`.
pub fn extend(&self, right: &Self) -> Self {
let count = self.fields.len() + right.fields.len();
let mut fields = self.fields.clone();
fields.reserve(count - fields.len());
let mut fields = Vec::with_capacity(count);
fields.extend(self.fields.iter().cloned());

let mut cont = 0;
//Avoid duplicated field names...
Expand Down

0 comments on commit ee72b10

Please sign in to comment.