diff --git a/src/buffer/cell.rs b/src/buffer/cell.rs index 9c4309d3..642b6030 100644 --- a/src/buffer/cell.rs +++ b/src/buffer/cell.rs @@ -41,7 +41,7 @@ impl Cell { /// /// This works at compile time and puts the symbol onto the stack. Fails to build when the /// symbol doesnt fit onto the stack and requires to be placed on the heap. Use - /// `Self::default().set_symbol()` in that case. See [`CompactString::new_inline`] for more + /// `Self::default().set_symbol()` in that case. See [`CompactString::const_new`] for more /// details on this. pub const fn new(symbol: &'static str) -> Self { Self { @@ -139,7 +139,7 @@ impl Cell { /// Resets the cell to the empty state. pub fn reset(&mut self) { - self.symbol = CompactString::new(" "); + self.symbol = CompactString::const_new(" "); self.fg = Color::Reset; self.bg = Color::Reset; #[cfg(feature = "underline-color")] @@ -167,7 +167,7 @@ mod tests { assert_eq!( cell, Cell { - symbol: CompactString::new("あ"), + symbol: CompactString::const_new("あ"), fg: Color::Reset, bg: Color::Reset, #[cfg(feature = "underline-color")]