Skip to content

Commit

Permalink
Use Self type.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Sep 7, 2023
1 parent 226933f commit e176917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/ops/cargo_clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ fn escape_glob_path(pattern: &Path) -> CargoResult<String> {
}

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);
Expand Down

0 comments on commit e176917

Please sign in to comment.