mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
simplify
This commit is contained in:
parent
8f1ce82753
commit
4268fbeaa1
4 changed files with 38 additions and 54 deletions
|
@ -25,11 +25,9 @@ pub use {
|
|||
stdio::{stdio_transport, Threads},
|
||||
};
|
||||
|
||||
pub type LspServer = fn(&mut Receiver<RawMessage>, &mut Sender<RawMessage>) -> Result<()>;
|
||||
|
||||
pub fn run_server(
|
||||
caps: ServerCapabilities,
|
||||
server: LspServer,
|
||||
server: impl FnOnce(&mut Receiver<RawMessage>, &mut Sender<RawMessage>) -> Result<()>,
|
||||
mut receiver: Receiver<RawMessage>,
|
||||
mut sender: Sender<RawMessage>,
|
||||
) -> Result<()> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue