From b64e188aa5f7ce11d86539229155c608dbdc03b7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 25 Jul 2024 10:52:41 +0200 Subject: [PATCH] termproxy: less dangerous const usage in match statement Signed-off-by: Wolfgang Bumiller --- termproxy/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/termproxy/src/main.rs b/termproxy/src/main.rs index 54e6bf9..d2bebb1 100644 --- a/termproxy/src/main.rs +++ b/termproxy/src/main.rs @@ -342,7 +342,7 @@ fn do_main() -> Result<()> { finished = true; } match event.token() { - TCP => { + self::TCP => { if readable { tcp_readable = true; } @@ -350,7 +350,7 @@ fn do_main() -> Result<()> { tcp_writable = true; } } - PTY => { + self::PTY => { if readable { pty_readable = true; }