Silence Rust-Analyzer false-positive (#23724)

Release Notes:

- N/A
This commit is contained in:
João Marcos 2025-01-27 13:38:03 -03:00 committed by GitHub
parent ad49f71e6e
commit 2256c21841
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1563,7 +1563,7 @@ impl LanguageScope {
self.config_override().map(|o| &o.line_comments),
Some(&self.language.config.line_comments),
)
.map_or(&[] as &[_], |e| e.as_slice())
.map_or([].as_slice(), |e| e.as_slice())
}
pub fn block_comment_delimiters(&self) -> Option<(&Arc<str>, &Arc<str>)> {