Warning
This post was published 44 days ago. The information described in this article may have changed.
This is a very beginner question.
In the release post for 1.88, they define Let Chains which look nice:
if let Channel::Stable(v) = release_info()
&& let Semver { major, minor, .. } = v
&& major == 1
&& minor == 88
{
println!("`let_chains` was stabilized in this version");
}
I assume without the chains this would be
if let Channel::Stable(v) = release_info(){
if let let Semver { major, minor, .. } = v {
if major == 1 && minor == 88 {
println!("`let_chains` was stabilized in this version");
}
}
}
Or how?
6 posts - 3 participants
🏷️ rust_feed