Skip to content

Commit

Permalink
Remove use of deprecated features in indexmap
Browse files Browse the repository at this point in the history
  • Loading branch information
elichai committed Jun 25, 2024
1 parent ba9911f commit 98946b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/aide/src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ impl<'t> TransformOperation<'t> {
let t = callback_transform(TransformCallback::new(p));

if t.hidden {
callbacks.remove(callback_url);
callbacks.swap_remove(callback_url);
if self
.operation
.callbacks
Expand All @@ -848,7 +848,7 @@ impl<'t> TransformOperation<'t> {
.unwrap()
.is_empty()
{
self.operation.callbacks.remove(callback_name);
self.operation.callbacks.swap_remove(callback_name);
}
}

Expand Down

0 comments on commit 98946b2

Please sign in to comment.