Make dylib_flag cross-platform

This commit is contained in:
nora 2023-09-23 15:13:55 +02:00
parent 8c8172c55d
commit cf6706ebd6
5 changed files with 42 additions and 44 deletions

View file

@ -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();