fix clippy lint

This commit is contained in:
Blaž Hrastnik 2021-02-22 11:43:57 +09:00
parent 5096bdad33
commit 3b6c9648f3

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]