diff --git a/copy/Cargo.toml b/copy/Cargo.toml index bb0d869..5e05191 100644 --- a/copy/Cargo.toml +++ b/copy/Cargo.toml @@ -2,5 +2,6 @@ name = "copy" version = "0.1.0" authors = ["You "] +edition = "2018" [dependencies] diff --git a/copy/src/main.rs b/copy/src/main.rs index 867441f..9dadb49 100644 --- a/copy/src/main.rs +++ b/copy/src/main.rs @@ -1,3 +1,6 @@ +#![warn(rust_2018_idioms)] +#![allow(elided_lifetimes_in_paths)] + use std::fs; use std::io; use std::path::Path;