Skip to content
This repository was archived by the owner on Dec 10, 2022. It is now read-only.

Commit 3a80d6b

Browse files
committed
refactor(node): do not depend on serde_derive explicitly
1 parent 492e972 commit 3a80d6b

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

Cargo.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ regex = "1"
2828
tokio = "0.1.7"
2929
tokio-codec = "0.1"
3030
config = "0.9"
31-
serde = "1.0"
32-
serde_derive = "1.0"
31+
serde = { version = "1.0", features = ["derive"] }
3332
serde_yaml = "0.8.8"
3433
tox = { git = "https://github.com/tox-rs/tox.git" }
3534

src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
extern crate clap;
33
#[macro_use]
44
extern crate log;
5-
#[macro_use]
6-
extern crate serde_derive;
75

86
mod node_config;
97
mod motd;

src/node_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::path::Path;
55
use std::collections::HashMap;
66

77
use config::{Config, File as CfgFile};
8-
use serde::de::{self, Deserialize, Deserializer};
8+
use serde::{de, Deserialize, Deserializer};
99
use serde_yaml::Value;
1010
use clap::{App, AppSettings, Arg, SubCommand, ArgMatches};
1111
use hex::FromHex;

0 commit comments

Comments
 (0)