From 875ad9b5c410200f5072515ae91b4ff51cff0448 Mon Sep 17 00:00:00 2001 From: Jean SIMARD Date: Wed, 23 Sep 2020 08:45:35 +0200 Subject: Bump smol_str from 0.1.16 to 0.1.17 --- crates/hir_ty/src/infer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/hir_ty') diff --git a/crates/hir_ty/src/infer.rs b/crates/hir_ty/src/infer.rs index 2b53b8297..9a7785c76 100644 --- a/crates/hir_ty/src/infer.rs +++ b/crates/hir_ty/src/infer.rs @@ -555,7 +555,7 @@ impl<'a> InferenceContext<'a> { fn resolve_lang_item(&self, name: &str) -> Option { let krate = self.resolver.krate()?; - let name = SmolStr::new_inline_from_ascii(name.len(), name.as_bytes()); + let name = SmolStr::new_inline(name); self.db.lang_item(krate, name) } -- cgit v1.2.3