Skip to content

Commit a880fd0

Browse files
committed
lib: Adapt to clippy lint re then_some
1 parent 1e45689 commit a880fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/container/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ pub fn merge_default_container_proxy_opts(
315315
) -> Result<()> {
316316
let user = cap_std_ext::rustix::process::getuid()
317317
.is_root()
318-
.then(|| isolation::DEFAULT_UNPRIVILEGED_USER);
318+
.then_some(isolation::DEFAULT_UNPRIVILEGED_USER);
319319
merge_default_container_proxy_opts_with_isolation(config, user)
320320
}
321321

@@ -341,7 +341,7 @@ pub fn merge_default_container_proxy_opts_with_isolation(
341341
let isolation_user = config
342342
.skopeo_cmd
343343
.is_none()
344-
.then(|| isolation_user.as_ref())
344+
.then_some(isolation_user.as_ref())
345345
.flatten();
346346
if let Some(user) = isolation_user {
347347
// Read the default authfile if it exists and pass it via file descriptor

0 commit comments

Comments
 (0)