fix: type alias bug

This commit is contained in:
Shunsuke Shibayama 2023-10-16 18:34:19 +09:00
parent 0c6c5e363f
commit e6cf329f97
8 changed files with 42 additions and 28 deletions

View file

@ -3135,8 +3135,7 @@ impl VarName {
.content
.chars()
.next()
.map(|c| c.is_uppercase())
.unwrap_or(false)
.map_or(false, |c| c.is_uppercase())
}
#[inline]
@ -3146,12 +3145,7 @@ impl VarName {
#[inline]
pub fn is_procedural(&self) -> bool {
self.0
.content
.chars()
.last()
.map(|c| c == '!')
.unwrap_or(false)
self.0.content.chars().last().map_or(false, |c| c == '!')
}
pub fn is_raw(&self) -> bool {