@@ -433,7 +433,7 @@ impl Buffer {
433 (x_offset as u16, y)
433 (x_offset as u16, y)
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) {
437 let mut remaining_width = width;
437 let mut remaining_width = width;
438 let mut x = x;
438 let mut x = x;
439 for span in &spans.0 {
439 for span in &spans.0 {
@@ -454,7 +454,7 @@ impl Buffer {
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) {
458 self.set_stringn(x, y, span.content.as_ref(), width as usize, span.style)
458 self.set_stringn(x, y, span.content.as_ref(), width as usize, span.style)
@@ -521,10 +521,10 @@ impl Buffer {
521 pub fn merge(&mut self, other: &Buffer) {
521 pub fn merge(&mut self, other: &Buffer) {
522 let area = self.area.union(other.area);
522 let area = self.area.union(other.area);
523 let cell: Cell = Default::default();
523 let cell: Cell = Default::default();
524− self.content.resize(area.area() as usize, cell.clone());
524+ self.content.resize(area.area(), cell.clone());
526 // Move original content to the appropriate space
526 // Move original content to the appropriate space
527− let size = self.area.area() as usize;
527+ let size = self.area.area();
528 for i in (0..size).rev() {
528 for i in (0..size).rev() {
529 let (x, y) = self.pos_of(i);
529 let (x, y) = self.pos_of(i);
530 // New index in content
530 // New index in content
@@ -537,7 +537,7 @@ impl Buffer {
538 // Push content of the other buffer into this one (may erase previous
538 // Push content of the other buffer into this one (may erase previous
540− let size = other.area.area() as usize;
540+ let size = other.area.area();
541 for i in 0..size {
541 for i in 0..size {
542 let (x, y) = other.pos_of(i);
542 let (x, y) = other.pos_of(i);
543 // New index in content
543 // New index in content