mirror of https://github.com/helix-editor/helix
fix clippy lint
parent
5096bdad33
commit
3b6c9648f3
|
@ -274,7 +274,7 @@ impl Document {
|
||||||
#[inline]
|
#[inline]
|
||||||
/// Corresponding language scope name. Usually `source.<lang>`.
|
/// Corresponding language scope name. Usually `source.<lang>`.
|
||||||
pub fn language(&self) -> Option<&str> {
|
pub fn language(&self) -> Option<&str> {
|
||||||
self.language.as_ref().map(String::as_str)
|
self.language.as_deref()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Reference in New Issue