allow rustfmt to reorder imports

This wasn't a right decision in the first place, the feature flag was
broken in the last rustfmt release, and syntax highlighting of imports
is more important anyway
This commit is contained in:
Aleksey Kladov
2019-07-04 23:05:17 +03:00
parent 2b2cd829b0
commit 1834bae5b8
166 changed files with 798 additions and 814 deletions

View File

@@ -2,7 +2,7 @@ mod handlers;
mod subscriptions;
pub(crate) mod pending_requests;
use std::{fmt, path::PathBuf, sync::Arc, time::Instant, error::Error};
use std::{error::Error, fmt, path::PathBuf, sync::Arc, time::Instant};
use crossbeam_channel::{select, unbounded, Receiver, RecvError, Sender};
use gen_lsp_server::{
@@ -10,21 +10,20 @@ use gen_lsp_server::{
};
use lsp_types::NumberOrString;
use ra_ide_api::{Canceled, FileId, LibraryData};
use ra_prof::profile;
use ra_vfs::VfsTask;
use serde::{de::DeserializeOwned, Serialize};
use threadpool::ThreadPool;
use ra_prof::profile;
use crate::{
main_loop::{
pending_requests::{PendingRequest, PendingRequests},
subscriptions::Subscriptions,
pending_requests::{PendingRequests, PendingRequest},
},
project_model::workspace_loader,
req,
world::{WorldSnapshot, WorldState},
Result,
InitializationOptions,
InitializationOptions, Result,
};
const THREADPOOL_SIZE: usize = 8;