Skip to content

Commit f8934c2

Browse files
committed
Backward compatability
1 parent 696f409 commit f8934c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/serde_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ where
6565
}
6666

6767
pub fn string_field_is_none_or_empty(opt: &Option<String>) -> bool {
68-
opt.as_ref().is_none_or(|s| s.is_empty())
68+
opt.as_ref().map_or(true, |s| s.is_empty())
6969
}

0 commit comments

Comments
 (0)