]> git.proxmox.com Git - cargo.git/commitdiff
Rename default() method that does not implement Default
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Sat, 14 Apr 2018 09:58:01 +0000 (11:58 +0200)
committerDirkjan Ochtman <dirkjan@ochtman.nl>
Thu, 3 May 2018 19:54:49 +0000 (21:54 +0200)
src/cargo/ops/cargo_compile.rs

index 04f76dc23499bec23b18dfeacc5879291bd94124..36eac5b3b412a8c25080ecf5f95d13dc92454083 100644 (file)
@@ -67,7 +67,7 @@ pub struct CompileOptions<'a> {
 }
 
 impl<'a> CompileOptions<'a> {
-    pub fn default(config: &'a Config, mode: CompileMode) -> CargoResult<CompileOptions<'a>> {
+    pub fn new(config: &'a Config, mode: CompileMode) -> CargoResult<CompileOptions<'a>> {
         Ok(CompileOptions {
             config,
             build_config: BuildConfig::new(config, None, &None, mode)?,