aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/document.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index dd7b14fc..426c8e21 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -274,7 +274,7 @@ impl Document {
#[inline]
/// Corresponding language scope name. Usually `source.<lang>`.
pub fn language(&self) -> Option<&str> {
- self.language.as_ref().map(String::as_str)
+ self.language.as_deref()
}
#[inline]