Silence Rust-Analyzer false-positive (#23724)

Release Notes:

- N/A
This commit is contained in:
João Marcos
2025-01-27 16:38:03 +00:00
committed by GitHub
parent ad49f71e6e
commit 2256c21841
+1 -1
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>)> {