Skip to content

Commit

Permalink
Rename default() method that does not implement Default
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed May 3, 2018
1 parent 0802516 commit 072254c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/ops/cargo_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?,
Expand Down

0 comments on commit 072254c

Please sign in to comment.