5
0
mirror of git://git.proxmox.com/git/pve-xtermjs.git synced 2024-12-22 17:35:56 +03:00

termproxy: less dangerous const usage in match statement

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-07-25 10:52:41 +02:00
parent b9e4877be0
commit b64e188aa5

View File

@ -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;
}