diff --git a/src/cargo/ops/cargo_clean.rs b/src/cargo/ops/cargo_clean.rs index 4a8e65607eda..6bfc375a4040 100644 --- a/src/cargo/ops/cargo_clean.rs +++ b/src/cargo/ops/cargo_clean.rs @@ -262,7 +262,7 @@ fn escape_glob_path(pattern: &Path) -> CargoResult { } impl<'cfg> CleanContext<'cfg> { - pub fn new(config: &'cfg Config) -> CleanContext<'cfg> { + pub fn new(config: &'cfg Config) -> Self { // This progress bar will get replaced, this is just here to avoid needing // an Option until the actual bar is created. let progress = CleaningFolderBar::new(config, 0);