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

@ -28,11 +28,12 @@ impl<Checker: BuildRunnable> Server<Checker> {
send_log("visitor not found")?;
return Ok(None);
};
let Some(artifact) = self.artifacts.get(&uri) else {
let Some(result) = self.artifacts.get(&uri) else {
send_log("artifact not found")?;
return Ok(None);
};
let warns = artifact
let warns = result
.artifact
.warns
.iter()
.filter(|warn| warn.core.main_message.ends_with("is not used"))