diff --git a/src/utils/chunks/upload.rs b/src/utils/chunks/upload.rs index f71add7769..60e0176db1 100644 --- a/src/utils/chunks/upload.rs +++ b/src/utils/chunks/upload.rs @@ -313,7 +313,7 @@ where /// Renders the given detail string to the command line. If the `detail` is /// either missing or empty, the optional fallback will be used. fn render_detail(detail: Option<&str>, fallback: Option<&str>) { - let string = detail.unwrap_or_else(|| fallback.unwrap_or_default()); + let string = detail.or(fallback).unwrap_or_default(); for line in string.lines() { if !line.is_empty() {