From fe2213c986f63ffa86e0362e95348ee29df3dd35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 22 Aug 2022 13:15:53 +0200 Subject: [PATCH] use short assign-bit-or (clippy fix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- pbs-client/src/pxar/extract.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pbs-client/src/pxar/extract.rs b/pbs-client/src/pxar/extract.rs index 33f1ebee..4b688996 100644 --- a/pbs-client/src/pxar/extract.rs +++ b/pbs-client/src/pxar/extract.rs @@ -403,9 +403,9 @@ impl Extractor { let parent = self.parent_fd()?; let mut oflags = OFlag::O_CREAT | OFlag::O_WRONLY | OFlag::O_CLOEXEC; if overwrite { - oflags = oflags | OFlag::O_TRUNC; + oflags |= OFlag::O_TRUNC; } else { - oflags = oflags | OFlag::O_EXCL; + oflags |= OFlag::O_EXCL; } let mut file = unsafe { std::fs::File::from_raw_fd( @@ -461,9 +461,9 @@ impl Extractor { let parent = self.parent_fd()?; let mut oflags = OFlag::O_CREAT | OFlag::O_WRONLY | OFlag::O_CLOEXEC; if overwrite { - oflags = oflags | OFlag::O_TRUNC; + oflags |= OFlag::O_TRUNC; } else { - oflags = oflags | OFlag::O_EXCL; + oflags |= OFlag::O_EXCL; } let mut file = tokio::fs::File::from_std(unsafe { std::fs::File::from_raw_fd( -- 2.39.2