Skip to content

Commit

Permalink
Fix smallvec feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
juhaku committed Jul 24, 2022
1 parent 47a7396 commit b3f2726
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utoipa-gen/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ impl<'t> TypeTree<'t> {
fn get_generic_type(segment: &PathSegment) -> Option<GenericType> {
match &*segment.ident.to_string() {
"HashMap" | "Map" | "BTreeMap" => Some(GenericType::Map),
"Vec" | "SmallVec" => Some(GenericType::Vec),
"Vec" => Some(GenericType::Vec),
#[cfg(feature = "smallvec")]
"SmallVec" => Some(GenericType::Vec),
"Option" => Some(GenericType::Option),
"Cow" => Some(GenericType::Cow),
"Box" => Some(GenericType::Box),
Expand Down

0 comments on commit b3f2726

Please sign in to comment.