Skip to content

Commit 80451f0

Browse files
0xSwapFeeder0xmemorygrinder
authored andcommitted
fix(slither): ran fmt and lint + pnpm install
1 parent f760d1f commit 80451f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

servers/slither-server/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,8 @@ impl LanguageServer for Backend {
9797
if self.data.lock().await.has_to_shutdown {
9898
error!("Osmium-Solidity-Slither shuting down ...");
9999
info!("This may occur because of missing dependencies or errors. Please check the logs for more information.");
100-
self.shutdown().await;
101-
}
102-
else {
100+
let _ = self.shutdown().await;
101+
} else {
103102
info!("Osmium-Solidity-Slither initialized!");
104103
}
105104
}

servers/slither-server/src/types.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ use tower_lsp::lsp_types::{Diagnostic, DiagnosticSeverity as Severity, Position,
99
pub struct SlitherDiag {
1010
pub diagnostics: Vec<Diagnostic>,
1111
pub uri: Url,
12-
pub has_to_shutdown: bool,
1312
}
1413

1514
impl SlitherDiag {
1615
pub fn new(uri: Url, diagnostics: Vec<Diagnostic>) -> Self {
17-
Self { uri, diagnostics, has_to_shutdown: false }
16+
Self { uri, diagnostics }
1817
}
1918
}
2019

@@ -25,6 +24,7 @@ pub struct SlitherData {
2524
pub sender: Sender<SlitherDiag>,
2625
pub src_paths: Vec<String>,
2726
pub workspace: String,
27+
pub has_to_shutdown: bool,
2828
}
2929

3030
impl SlitherData {
@@ -36,6 +36,7 @@ impl SlitherData {
3636
receiver: Some(receiver),
3737
sender,
3838
workspace: String::new(),
39+
has_to_shutdown: false,
3940
}
4041
}
4142
}

0 commit comments

Comments
 (0)