From 2004e41e9240fd3fba94a5a26d4e18577790c85d Mon Sep 17 00:00:00 2001 From: opilarium Date: Sat, 15 Jul 2017 23:26:37 +0300 Subject: [PATCH] Implementation for Config::default --- src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 34b012e..8a6c40f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -72,7 +72,7 @@ mod setup_config; pub mod windows_registry; /// Extra configuration to pass to gcc. -#[derive(Clone, Debug, Default)] +#[derive(Clone, Debug)] pub struct Config { include_directories: Vec, definitions: Vec<(String, Option)>, @@ -1123,6 +1123,12 @@ impl Config { } } +impl Default for Config { + fn default() -> Config { + Config::new() + } +} + impl Tool { fn new(path: PathBuf) -> Tool { // Try to detect family of the tool from its name, falling back to Gnu.