From 2351308d92f4c785d98cc24026a818d28945513e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 21 Dec 2018 22:39:59 +0300 Subject: [PATCH] remove explicit serde_derive --- Cargo.lock | 2 -- crates/gen_lsp_server/Cargo.toml | 1 - crates/gen_lsp_server/src/msg.rs | 2 +- crates/ra_lsp_server/Cargo.toml | 1 - crates/ra_lsp_server/src/main.rs | 4 ++-- crates/ra_lsp_server/src/req.rs | 2 +- 6 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bf2297e696..1e5f00de09 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -334,7 +334,6 @@ dependencies = [ "languageserver-types 0.53.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.82 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.82 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -732,7 +731,6 @@ dependencies = [ "relative-path 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-hash 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.82 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.82 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)", "smol_str 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/crates/gen_lsp_server/Cargo.toml b/crates/gen_lsp_server/Cargo.toml index 6c91e38aa0..5f90d39d6c 100644 --- a/crates/gen_lsp_server/Cargo.toml +++ b/crates/gen_lsp_server/Cargo.toml @@ -13,5 +13,4 @@ log = "0.4.3" failure = "0.1.2" serde_json = "1.0.24" serde = "1.0.71" -serde_derive = "1.0.71" crossbeam-channel = "0.2.4" diff --git a/crates/gen_lsp_server/src/msg.rs b/crates/gen_lsp_server/src/msg.rs index 22d273d55a..ef6358cb17 100644 --- a/crates/gen_lsp_server/src/msg.rs +++ b/crates/gen_lsp_server/src/msg.rs @@ -1,7 +1,7 @@ use std::io::{BufRead, Write}; use languageserver_types::{notification::Notification, request::Request}; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use serde_json::{from_str, from_value, to_string, to_value, Value}; use failure::{bail, format_err}; diff --git a/crates/ra_lsp_server/Cargo.toml b/crates/ra_lsp_server/Cargo.toml index fc10096e5a..3c8c240cd8 100644 --- a/crates/ra_lsp_server/Cargo.toml +++ b/crates/ra_lsp_server/Cargo.toml @@ -12,7 +12,6 @@ failure = "0.1.2" failure_derive = "0.1.2" serde_json = "1.0.24" serde = "1.0.71" -serde_derive = "1.0.71" drop_bomb = "0.1.0" crossbeam-channel = "0.2.4" flexi_logger = "0.10.0" diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs index 4497980e5f..eae601f919 100644 --- a/crates/ra_lsp_server/src/main.rs +++ b/crates/ra_lsp_server/src/main.rs @@ -1,7 +1,7 @@ -use serde_derive::Deserialize; -use serde::Deserialize as _D; +use serde::Deserialize; use flexi_logger::{Duplicate, Logger}; use gen_lsp_server::{run_server, stdio_transport}; + use ra_lsp_server::Result; fn main() -> Result<()> { diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index 999792ecba..747ab8a8c9 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs @@ -1,4 +1,4 @@ -use serde_derive::{Serialize, Deserialize}; +use serde::{Serialize, Deserialize}; use languageserver_types::{Location, Position, Range, TextDocumentIdentifier, Url}; use rustc_hash::FxHashMap; use url_serde;