about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2019-02-04 00:45:42 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2019-02-04 00:45:42 +0900
commitd11d1afa64ca2c29747074bce0f7bb2278b5ae66 (patch)
treedc4560fb4324506d112e669f9009f4af017ac6f3
parent8a57831a4b7dfa960110599748f3b7382ae28237 (diff)
downloadrust-d11d1afa64ca2c29747074bce0f7bb2278b5ae66.tar.gz
rust-d11d1afa64ca2c29747074bce0f7bb2278b5ae66.zip
Transition rustdoc-theme to 2018 edition
-rw-r--r--src/tools/rustdoc-themes/Cargo.toml1
-rw-r--r--src/tools/rustdoc-themes/main.rs2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/rustdoc-themes/Cargo.toml b/src/tools/rustdoc-themes/Cargo.toml
index c0e2f527301..c12a20fd56c 100644
--- a/src/tools/rustdoc-themes/Cargo.toml
+++ b/src/tools/rustdoc-themes/Cargo.toml
@@ -2,6 +2,7 @@
 name = "rustdoc-themes"
 version = "0.1.0"
 authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"]
+edition = "2018"
 
 [[bin]]
 name = "rustdoc-themes"
diff --git a/src/tools/rustdoc-themes/main.rs b/src/tools/rustdoc-themes/main.rs
index 616b5444832..63432a6585a 100644
--- a/src/tools/rustdoc-themes/main.rs
+++ b/src/tools/rustdoc-themes/main.rs
@@ -1,3 +1,5 @@
+#![deny(rust_2018_idioms)]
+
 use std::env::args;
 use std::fs::read_dir;
 use std::path::Path;