aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-05-09 06:49:11 -0700
committerGitHub <noreply@github.com>2019-05-09 06:49:11 -0700
commite887edc70f0341cfbf37f646b6213d6fb6e00439 (patch)
tree63e2a9104a1c0ed297edd2ae41bd4536fde2ce0d /examples
parent320464be3b014deaaf9387583862b1d4a69d89f8 (diff)
parent0fca4dd2d30a2044af454cf55211e67cf76f333c (diff)
downloadmilf-rs-e887edc70f0341cfbf37f646b6213d6fb6e00439.tar.gz
milf-rs-e887edc70f0341cfbf37f646b6213d6fb6e00439.zip
Merge pull request #308 from ehuss/edition-2018
Migrate to 2018 edition
Diffstat (limited to 'examples')
-rw-r--r--examples/decode.rs4
-rw-r--r--examples/enum_external.rs4
-rw-r--r--examples/toml2json.rs3
3 files changed, 2 insertions, 9 deletions
diff --git a/examples/decode.rs b/examples/decode.rs
index e8ce586..b5d6a99 100644
--- a/examples/decode.rs
+++ b/examples/decode.rs
@@ -3,9 +3,7 @@
#![deny(warnings)]
-extern crate toml;
-#[macro_use]
-extern crate serde_derive;
+use serde_derive::Deserialize;
/// This is what we're going to decode into. Each field is optional, meaning
/// that it doesn't have to be present in TOML.
diff --git a/examples/enum_external.rs b/examples/enum_external.rs
index e2ac4f8..a7dd84a 100644
--- a/examples/enum_external.rs
+++ b/examples/enum_external.rs
@@ -3,9 +3,7 @@
#![deny(warnings)]
-extern crate toml;
-#[macro_use]
-extern crate serde_derive;
+use serde_derive::Deserialize;
/// This is what we're going to decode into.
#[derive(Debug, Deserialize)]
diff --git a/examples/toml2json.rs b/examples/toml2json.rs
index 12c3f1c..1b90c9f 100644
--- a/examples/toml2json.rs
+++ b/examples/toml2json.rs
@@ -1,8 +1,5 @@
#![deny(warnings)]
-extern crate serde_json;
-extern crate toml;
-
use std::env;
use std::fs::File;
use std::io;