@@ -433,7 +433,7 @@ impl Buffer {
433433 (x_offset as u16, y)
434434 }
435435
436− pub fn set_spans<'a>(&mut self, x: u16, y: u16, spans: &Spans<'a>, width: u16) -> (u16, u16) {
436+ pub fn set_spans(&mut self, x: u16, y: u16, spans: &Spans, width: u16) -> (u16, u16) {
437437 let mut remaining_width = width;
438438 let mut x = x;
439439 for span in &spans.0 {
@@ -454,7 +454,7 @@ impl Buffer {
454454 (x, y)
455455 }
456456
457− pub fn set_span<'a>(&mut self, x: u16, y: u16, span: &Span<'a>, width: u16) -> (u16, u16) {
457+ pub fn set_span(&mut self, x: u16, y: u16, span: &Span, width: u16) -> (u16, u16) {
458458 self.set_stringn(x, y, span.content.as_ref(), width as usize, span.style)
459459 }
460460
@@ -521,10 +521,10 @@ impl Buffer {
521521 pub fn merge(&mut self, other: &Buffer) {
522522 let area = self.area.union(other.area);
523523 let cell: Cell = Default::default();
524− self.content.resize(area.area() as usize, cell.clone());
524+ self.content.resize(area.area(), cell.clone());
525525
526526 // Move original content to the appropriate space
527− let size = self.area.area() as usize;
527+ let size = self.area.area();
528528 for i in (0..size).rev() {
529529 let (x, y) = self.pos_of(i);
530530 // New index in content
@@ -537,7 +537,7 @@ impl Buffer {
537537
538538 // Push content of the other buffer into this one (may erase previous
539539 // data)
540− let size = other.area.area() as usize;
540+ let size = other.area.area();
541541 for i in 0..size {
542542 let (x, y) = other.pos_of(i);
543543 // New index in content