Skip to content

Commit

Permalink
Add missing FromIterator trait import
Browse files Browse the repository at this point in the history
  • Loading branch information
juhaku committed Mar 28, 2022
1 parent 7cb08d5 commit 416b326
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utoipa_gen_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
use utoipa::{
openapi::{
self,
security::{Http, HttpAuthScheme, SecuritySchema, HttpBuilder},
security::{HttpAuthScheme, SecuritySchema, HttpBuilder},
},
Component, Modify, OpenApi,
};
Expand Down
1 change: 1 addition & 0 deletions utoipa-gen/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ impl ToTokens for Path {

fn path_item(default_tag: Option<&str>) -> utoipa::openapi::path::PathItem {
use utoipa::openapi::ToArray;
use std::iter::FromIterator;
utoipa::openapi::PathItem::new(
#path_operation,
#operation.tag(*[Some(#tag), default_tag, Some("crate")].iter()
Expand Down

0 comments on commit 416b326

Please sign in to comment.