diff --git a/src/lib.rs b/src/lib.rs index 1f2de4e..197568f 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)>, @@ -1187,6 +1187,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.