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:
parent
b9e4877be0
commit
b64e188aa5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user