Closed Gregory108 closed 2 weeks ago
The code looks OK. Tests usually tell you if there are issues. However, it would be much less code changes to add a new status value "unknown" instead of making it nullable.
But test fails
^^^^^^^^^^^^^^^^^^^^^ expected `Option<String>`, found `String
(and not even the one that I added by analogy)
Fixed existing errors. I will test this later today. It would help if you could describe test steps.
Mapping from aerial imagery, i.e. preliminary mapping tree coordinates, in most cases is insufficient for ruling on
tree.state
-- only for coordinates.Hence, a neutral category is necessary:
Null
String
values in Rust/React,"unknown"
value is okay-ish (I did this way, because... I do not know both and Rust/React=)@umonkey help wanted!
PS: adding one value required changing or editing code in ~35 places with lots of boilerplate. I'd create a very low-priority refactoring issue for "folding" repetitive "ifs and [test]s" IF it is possible. -> Is it possible?