aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2024-12-29 00:18:14 +0300
committerGitHub <noreply@github.com>2024-12-29 00:18:14 +0300
commit40af63902e0af313722dfdc19a6d10a1d2ba29f4 (patch)
treedb577463eb1d0ed8cbc18f32f6050000e2d5b702 /src/lib.rs
parentebc4a4d7259678a8626f5c269ea9348dfc3e79b2 (diff)
downloadr-alacritty-vte-40af63902e0af313722dfdc19a6d10a1d2ba29f4.tar.gz
r-alacritty-vte-40af63902e0af313722dfdc19a6d10a1d2ba29f4.tar.bz2
r-alacritty-vte-40af63902e0af313722dfdc19a6d10a1d2ba29f4.zip
Improve attrs_from_sgr_parameters performance
Instead of collecting all the data into the vector just dispatch it right away avoiding allocations.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 31e2a31..0f12902 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -56,7 +56,7 @@ const MAX_OSC_RAW: usize = 1024;
struct VtUtf8Receiver<'a, P: Perform>(&'a mut P, &'a mut State);
-impl<'a, P: Perform> utf8::Receiver for VtUtf8Receiver<'a, P> {
+impl<P: Perform> utf8::Receiver for VtUtf8Receiver<'_, P> {
fn codepoint(&mut self, c: char) {
self.0.print(c);
*self.1 = State::Ground;