]> git.proxmox.com Git - pve-xtermjs.git/commitdiff
style: use Interest | Interest instead of .add
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 2 Feb 2021 11:56:24 +0000 (12:56 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 2 Feb 2021 12:08:15 +0000 (13:08 +0100)
BitOr is implemented via .add anyway, but this is more readable.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
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;