Skip to content

Commit

Permalink
Merge pull request #1375 from gtk-rs/bilelmoussaoui-patch-2
Browse files Browse the repository at this point in the history
analysis: Fix logic when analysing a function
  • Loading branch information
sdroege committed Aug 14, 2022
2 parents 74b6e47 + a9c86b5 commit 54e116a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/analysis/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,10 @@ pub fn analyze<F: Borrow<library::Function>>(
if let Some(deps) = deps {
let (has, version) = signature_params.has_in_deps(env, &name, deps);
if has {
match version {
Some(v) if v > env.config.min_cfg_version => not_version = version,
_ => continue,
if let Some(v) = version {
if v > env.config.min_cfg_version {
not_version = version;
}
}
}
}
Expand Down

0 comments on commit 54e116a

Please sign in to comment.