mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +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
|
|
@ -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