mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
sort imports
This commit is contained in:
parent
f77fc158fc
commit
b46fd38632
1 changed files with 8 additions and 7 deletions
|
@ -1,12 +1,8 @@
|
||||||
//! cargo_check provides the functionality needed to run `cargo check` or
|
//! cargo_check provides the functionality needed to run `cargo check` or
|
||||||
//! another compatible command (f.x. clippy) in a background thread and provide
|
//! another compatible command (f.x. clippy) in a background thread and provide
|
||||||
//! LSP diagnostics based on the output of the command.
|
//! LSP diagnostics based on the output of the command.
|
||||||
use cargo_metadata::Message;
|
mod conv;
|
||||||
use crossbeam_channel::{never, select, unbounded, Receiver, RecvError, Sender};
|
|
||||||
use lsp_types::{
|
|
||||||
CodeAction, CodeActionOrCommand, Diagnostic, Url, WorkDoneProgress, WorkDoneProgressBegin,
|
|
||||||
WorkDoneProgressEnd, WorkDoneProgressReport,
|
|
||||||
};
|
|
||||||
use std::{
|
use std::{
|
||||||
error, fmt,
|
error, fmt,
|
||||||
io::{BufRead, BufReader},
|
io::{BufRead, BufReader},
|
||||||
|
@ -15,7 +11,12 @@ use std::{
|
||||||
time::Instant,
|
time::Instant,
|
||||||
};
|
};
|
||||||
|
|
||||||
mod conv;
|
use cargo_metadata::Message;
|
||||||
|
use crossbeam_channel::{never, select, unbounded, Receiver, RecvError, Sender};
|
||||||
|
use lsp_types::{
|
||||||
|
CodeAction, CodeActionOrCommand, Diagnostic, Url, WorkDoneProgress, WorkDoneProgressBegin,
|
||||||
|
WorkDoneProgressEnd, WorkDoneProgressReport,
|
||||||
|
};
|
||||||
|
|
||||||
use crate::conv::{map_rust_diagnostic_to_lsp, MappedRustDiagnostic};
|
use crate::conv::{map_rust_diagnostic_to_lsp, MappedRustDiagnostic};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue