mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Cargo Format
Run `cargo fmt` and ignore generated files
This commit is contained in:
parent
39cb6c6d3f
commit
61f3a438d3
76 changed files with 1936 additions and 1530 deletions
|
@ -6,7 +6,7 @@ extern crate flexi_logger;
|
|||
extern crate gen_lsp_server;
|
||||
extern crate ra_lsp_server;
|
||||
|
||||
use flexi_logger::{Logger, Duplicate};
|
||||
use flexi_logger::{Duplicate, Logger};
|
||||
use gen_lsp_server::{run_server, stdio_transport};
|
||||
use ra_lsp_server::Result;
|
||||
|
||||
|
@ -38,7 +38,8 @@ fn main_inner() -> Result<()> {
|
|||
receiver,
|
||||
sender,
|
||||
|params, r, s| {
|
||||
let root = params.root_uri
|
||||
let root = params
|
||||
.root_uri
|
||||
.and_then(|it| it.to_file_path().ok())
|
||||
.unwrap_or(cwd);
|
||||
ra_lsp_server::main_loop(false, root, r, s)
|
||||
|
@ -49,4 +50,3 @@ fn main_inner() -> Result<()> {
|
|||
info!("... IO is down");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue