mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 19:59:07 +00:00
fix: bugs
This commit is contained in:
parent
33e1b776cb
commit
ced04e5d6a
8 changed files with 71 additions and 65 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue