mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-15 17:05:00 +01:00
Make dylib_flag cross-platform
This commit is contained in:
parent
8c8172c55d
commit
cf6706ebd6
5 changed files with 42 additions and 44 deletions
|
|
@ -198,7 +198,8 @@ impl PassController {
|
|||
fn next_in_worklist(&mut self) {
|
||||
let PassControllerState::Bisecting {
|
||||
current, worklist, ..
|
||||
} = &mut self.state else {
|
||||
} = &mut self.state
|
||||
else {
|
||||
unreachable!("next_in_worklist called on non-bisecting state");
|
||||
};
|
||||
match worklist.pop() {
|
||||
|
|
|
|||
|
|
@ -62,12 +62,11 @@ impl Minimizer {
|
|||
suggestions: &HashMap<&Path, Vec<&Suggestion>>,
|
||||
) -> Result<()> {
|
||||
for (sugg_file, suggestions) in suggestions {
|
||||
let Some(file) = self
|
||||
.files
|
||||
.iter()
|
||||
.find(|source| source.path.ends_with(sugg_file) || sugg_file.ends_with(&source.path)) else {
|
||||
continue;
|
||||
};
|
||||
let Some(file) = self.files.iter().find(|source| {
|
||||
source.path.ends_with(sugg_file) || sugg_file.ends_with(&source.path)
|
||||
}) else {
|
||||
continue;
|
||||
};
|
||||
|
||||
let changes = &mut Changes::default();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue