fix: bugs

This commit is contained in:
Shunsuke Shibayama 2023-05-13 16:14:34 +09:00
parent 33e1b776cb
commit ced04e5d6a
8 changed files with 71 additions and 65 deletions

View file

@ -24,8 +24,8 @@ impl<Checker: BuildRunnable> Server<Checker> {
fn send_trait_impls_lens(&mut self, uri: &NormalizedUrl) -> ELSResult<Vec<CodeLens>> {
let mut result = vec![];
if let Some(artifact) = self.artifacts.get(uri) {
if let Some(hir) = &artifact.object {
if let Some(analysis) = self.artifacts.get(uri) {
if let Some(hir) = &analysis.artifact.object {
for chunk in hir.module.iter() {
match chunk {
Expr::Def(def) if def.def_kind().is_trait() => {