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 propose to change visitor.rs#L40-L45 to
match entry { (tag, value) if tag == self.tag => Ok(value), _ => Err(A::Error::custom(format!(r#"key "{tag}""#, tag = self.tag))), }
as rust 1.39 hits stable (rustc 1.38 fails to compile this code, see bind_by_move_pattern_guards). In my opinion, this provides more readable code.
1.39
1.38
bind_by_move_pattern_guards
The text was updated successfully, but these errors were encountered:
f6ab5f8
Merge pull request #5 from telebofr/use_pattern_guard
4426214
Fix #1
WaffleLapkin
No branches or pull requests
I propose to change visitor.rs#L40-L45 to
as rust
1.39
hits stable (rustc1.38
fails to compile this code, seebind_by_move_pattern_guards
). In my opinion, this provides more readable code.The text was updated successfully, but these errors were encountered: