Closed GuillaumeGomez closed 2 months ago
I think it should generate
if let Some(query) = search_query && !self.query.is_empty()
. What do you think?
That certainly looks more sensible!
Another interesting bug coming from if let
: the binding var (query
in this case) is not recognized as such.
I expected this code:
To either emit an error about the
&&
afterif let Some
or to work, instead it generated:Which is a very unexpected in-between.
I think it should generate
if let Some(query) = search_query && !self.query.is_empty()
. What do you think?