`is_exact`?
smoelius opened this issue · comments
Samuel Moelius commented
Semver 0.11.0's VersionReq
had an is_exact
method:
Line 401 in 2748f5c
But the latest version's VersionReq
doesn't seem to have this method.
Is there some way to accomplish what that method did that I am missing?
Eric Huss commented
Something like this should work:
req.comparators.len() == 1 && {
let cmp = &req.comparators[0];
cmp.op == Op::Exact && cmp.minor.is_some() && cmp.patch.is_some()
}
Samuel Moelius commented
Thanks, @ehuss.