fix clippy lint

pull/8/head
Blaž Hrastnik 4 years ago
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…
Cancel
Save