From 072254c3da41b585a046ac88443f193aac3eb080 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 14 Apr 2018 11:58:01 +0200 Subject: [PATCH] Rename default() method that does not implement Default --- src/cargo/ops/cargo_compile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/ops/cargo_compile.rs b/src/cargo/ops/cargo_compile.rs index 04f76dc23..36eac5b3b 100644 --- a/src/cargo/ops/cargo_compile.rs +++ b/src/cargo/ops/cargo_compile.rs @@ -67,7 +67,7 @@ pub struct CompileOptions<'a> { } impl<'a> CompileOptions<'a> { - pub fn default(config: &'a Config, mode: CompileMode) -> CargoResult> { + pub fn new(config: &'a Config, mode: CompileMode) -> CargoResult> { Ok(CompileOptions { config, build_config: BuildConfig::new(config, None, &None, mode)?, -- 2.39.5