diff options
author | Christian Duerr <contact@christianduerr.com> | 2024-10-05 10:02:51 +0200 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2024-10-07 01:02:10 +0200 |
commit | 709738f7b50e06166b15be9f28e33a54b159150b (patch) | |
tree | c85ad7b2040a233417d5a89b2f30e4cfb17f9af5 /alacritty_terminal/src/grid/storage.rs | |
parent | 6067787763e663bd308e5b724a5efafc2c54a3d1 (diff) | |
download | alacritty-709738f7b50e06166b15be9f28e33a54b159150b.tar.gz alacritty-709738f7b50e06166b15be9f28e33a54b159150b.zip |
Remove unused `Clone` requirements
Diffstat (limited to 'alacritty_terminal/src/grid/storage.rs')
-rw-r--r-- | alacritty_terminal/src/grid/storage.rs | 6 |
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(); |