]> git.proxmox.com Git - pve-xtermjs.git/blobdiff - src/main.rs
style: use Interest | Interest instead of .add
[pve-xtermjs.git] / src / main.rs
index e85d518c1c09bfa5b2464f96f9b4a734b582b350..06f6314e318f77ce97646d78651581e58926d44f 100644 (file)
@@ -322,12 +322,12 @@ fn do_main() -> Result<()> {
     poll.registry().register(
         &mut tcp_handle,
         TCP,
-        Interest::READABLE.add(Interest::WRITABLE)
+        Interest::READABLE | Interest::WRITABLE,
     )?;
     poll.registry().register(
         &mut SourceFd(&pty.as_raw_fd()),
         PTY,
-        Interest::READABLE.add(Interest::WRITABLE)
+        Interest::READABLE | Interest::WRITABLE,
     )?;
 
     let mut tcp_writable = true;