compiler: updated to rust 1.84, now we have let chains!

This commit is contained in:
2025-09-14 19:08:59 -04:00
parent fcab20579a
commit f0c871711c
4 changed files with 17 additions and 17 deletions

View File

@@ -39,10 +39,10 @@ impl Path {
/// Checks whether this path refers to the sinkhole identifier, `_`
pub fn is_sinkhole(&self) -> bool {
if let [PathPart::Ident(id)] = self.parts.as_slice() {
if let "_" = id.to_ref() {
return true;
}
if let [PathPart::Ident(id)] = self.parts.as_slice()
&& let "_" = id.to_ref()
{
return true;
}
false
}