diff options
Diffstat (limited to 'src/ui.rs')
-rw-r--r-- | src/ui.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -239,7 +239,7 @@ struct FormConfig { } fn empty_string_to_none<T: FromStr + Sync>(value: &str) -> Result<Option<T>, T::Err> { - if value == "" { + if value.is_empty() { Ok(None) } else { |