mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-15 08:55:02 +01:00
write some docs challenge
This commit is contained in:
parent
8b76e561cb
commit
1b5d2f6228
2 changed files with 68 additions and 42 deletions
|
|
@ -181,6 +181,11 @@ impl Minimizer {
|
|||
invalidated_files: &mut HashSet<&'file SourceFile>,
|
||||
changes: &mut Changes,
|
||||
) -> Result<()> {
|
||||
// The core logic of minimization.
|
||||
// Here we process a single file (a unit of work) for a single pass.
|
||||
// For this, we repeatedly try to apply a pass to a subset of a file until we've exhausted all options.
|
||||
// The logic for bisecting down lives in PassController.
|
||||
|
||||
let mut checker = PassController::new(self.options.clone());
|
||||
loop {
|
||||
let file_display = file.path.display();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue