From e17691703d0284f8924db428f713d1f9d0acfbca Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 7 Sep 2023 14:57:38 -0700 Subject: [PATCH] Use `Self` type. --- src/cargo/ops/cargo_clean.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);