downgrade deprecation warns into debug_warns
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
89cee2d2d9
commit
1de0f493e8
@ -317,6 +317,7 @@ impl VersionHistory {
|
||||
self.removed.expect("VersioningDecision::Removed implies metadata.removed"),
|
||||
)),
|
||||
VersioningDecision::Stable { any_deprecated, all_deprecated, any_removed } => {
|
||||
if cfg!(debug_assertions) {
|
||||
if any_removed {
|
||||
if all_deprecated {
|
||||
warn!(
|
||||
@ -342,6 +343,7 @@ impl VersionHistory {
|
||||
{versions:?}",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Ok(self
|
||||
.stable_endpoint_for(versions)
|
||||
|
Loading…
x
Reference in New Issue
Block a user