From b46fd3863203d662531c735389b4008d8a715561 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 1 Apr 2020 00:16:16 +0200 Subject: sort imports --- crates/ra_flycheck/src/lib.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'crates/ra_flycheck/src/lib.rs') diff --git a/crates/ra_flycheck/src/lib.rs b/crates/ra_flycheck/src/lib.rs index 38940a77b..4b3fbc908 100644 --- a/crates/ra_flycheck/src/lib.rs +++ b/crates/ra_flycheck/src/lib.rs @@ -1,12 +1,8 @@ //! cargo_check provides the functionality needed to run `cargo check` or //! another compatible command (f.x. clippy) in a background thread and provide //! LSP diagnostics based on the output of the command. -use cargo_metadata::Message; -use crossbeam_channel::{never, select, unbounded, Receiver, RecvError, Sender}; -use lsp_types::{ - CodeAction, CodeActionOrCommand, Diagnostic, Url, WorkDoneProgress, WorkDoneProgressBegin, - WorkDoneProgressEnd, WorkDoneProgressReport, -}; +mod conv; + use std::{ error, fmt, io::{BufRead, BufReader}, @@ -15,7 +11,12 @@ use std::{ 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}; -- cgit v1.2.3