summaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-02-22 02:43:57 +0000
committerBlaž Hrastnik2021-02-22 02:43:57 +0000
commit3b6c9648f320d175de14e4b80df8980dcba54282 (patch)
tree8309430fd631692aec55ff6322ed80ca01fbdcdd /helix-view/src
parent5096bdad331610994b90e31e7a53c94b6bc831ba (diff)
fix clippy lint
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]