diff options
author | Christian Duerr <contact@christianduerr.com> | 2018-05-01 20:07:59 +0200 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2018-05-14 19:44:52 +0200 |
commit | 48c10676a42e0908147ec6df1324bc78d0eca8e5 (patch) | |
tree | d4b5e2bd6f537923f7a0bde1cfd9c50e18618bd4 /src/util.rs | |
parent | 5de8062e03de62aaacbcf3569522c7fe0bb01739 (diff) | |
download | alacritty-48c10676a42e0908147ec6df1324bc78d0eca8e5.tar.gz alacritty-48c10676a42e0908147ec6df1324bc78d0eca8e5.zip |
Remove `push` from `Storage`
Since every line is allocated at startup anyways, the `push` method on
`Storage` has been removed and instead of pushing to the vector the
initialization has been moved to the `with_capacity` method.
This has the advantage that we don't need to keep track of the `len` in
push (like adding one), but we just need to worry about
growing/shrinking the visible area.
Diffstat (limited to 'src/util.rs')
0 files changed, 0 insertions, 0 deletions