We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I expected this code:
{%- if let Some(query) = search_query && !query.is_empty() %}
To either emit an error about the && after if let Some or to work, instead it generated:
&&
if let Some
if let Some(query,) = &(search_query && !self.query.is_empty()) {
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?
if let Some(query) = search_query && !self.query.is_empty()
The text was updated successfully, but these errors were encountered:
That certainly looks more sensible!
Sorry, something went wrong.
Another interesting bug coming from if let: the binding var (query in this case) is not recognized as such.
if let
query
Successfully merging a pull request may close this issue.
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?The text was updated successfully, but these errors were encountered: