aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.rs')
-rw-r--r--src/ui.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.rs b/src/ui.rs
index 3ce2ab8..31d5f84 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -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 {