(value: String)
| 795 | } |
| 796 | |
| 797 | fn empty_string_or_none_clears(value: String) -> Option<String> { |
| 798 | if string_clears_optional(&value) { |
| 799 | None |
| 800 | } else { |
| 801 | Some(value) |
| 802 | } |
| 803 | } |
| 804 | |
| 805 | fn string_clears_optional(value: &str) -> bool { |
| 806 | value.is_empty() || value.eq_ignore_ascii_case("none") |
nothing calls this directly
no test coverage detected