File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments