A better way to test the value of an Option? April 12, 2024 by Tarik How about if (opt == Some("lakes")) This expresses the intent clearly and is straight forward.