aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/grid/storage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal/src/grid/storage.rs')
-rw-r--r--alacritty_terminal/src/grid/storage.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/alacritty_terminal/src/grid/storage.rs b/alacritty_terminal/src/grid/storage.rs
index 0a2be43b..abf57103 100644
--- a/alacritty_terminal/src/grid/storage.rs
+++ b/alacritty_terminal/src/grid/storage.rs
@@ -66,7 +66,7 @@ impl<T> Storage<T> {
#[inline]
pub fn with_capacity(visible_lines: usize, columns: usize) -> Storage<T>
where
- T: Clone + Default,
+ T: Default,
{
// Initialize visible lines; the scrollback buffer is initialized dynamically.
let mut inner = Vec::with_capacity(visible_lines);
@@ -79,7 +79,7 @@ impl<T> Storage<T> {
#[inline]
pub fn grow_visible_lines(&mut self, next: usize)
where
- T: Clone + Default,
+ T: Default,
{
// Number of lines the buffer needs to grow.
let additional_lines = next - self.visible_lines;
@@ -125,7 +125,7 @@ impl<T> Storage<T> {
#[inline]
pub fn initialize(&mut self, additional_rows: usize, columns: usize)
where
- T: Clone + Default,
+ T: Default,
{
if self.len + additional_rows > self.inner.len() {
self.rezero();