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
Hello all,
Currently, if_chain refuses to expand the pattern let $ident:$ty = $expr;, for example this piece of code
if_chain
let $ident:$ty = $expr;
if_chain! { if false; let y: u32 = 4; then { ... } else { ... } };
will not compile. I try to add a rule to support this pattern as:
(@expand $other:block let $ident:ident:$ty:ty = $expr:expr; $($tt:tt)+) => { let $ident:$ty = $expr; __if_chain! { @expand $other $($tt)+ } };
but I don't know whether there is a better way to do that or if_chain is interested in supporting this pattern.
Many thanks for any comment.
The text was updated successfully, but these errors were encountered:
Can we please have a new release with this fixed?
Sorry, something went wrong.
@PayasR no worries. Released as 1.0.0.
No branches or pull requests
Hello all,
Currently,
if_chain
refuses to expand the patternlet $ident:$ty = $expr;
, for example this piece of codewill not compile. I try to add a rule to support this pattern as:
but I don't know whether there is a better way to do that or
if_chain
is interested in supporting this pattern.Many thanks for any comment.
The text was updated successfully, but these errors were encountered: