We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 696f409 commit f8934c2Copy full SHA for f8934c2
src/commands/serde_utils.rs
@@ -65,5 +65,5 @@ where
65
}
66
67
pub fn string_field_is_none_or_empty(opt: &Option<String>) -> bool {
68
- opt.as_ref().is_none_or(|s| s.is_empty())
+ opt.as_ref().map_or(true, |s| s.is_empty())
69
0 commit comments