fix clippy lint

pull/8/head
Blaž Hrastnik 2021-02-22 11:43:57 +09:00
parent 5096bdad33
commit 3b6c9648f3
1 changed files with 1 additions and 1 deletions

View File

@ -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]