Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utoipa-gen/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl<'p> SynPathExt for &'p Path {
let path = type_tree
.path
.as_ref()
.expect("TypeTree must have a path")
.expect(&format!("utoipa does not understand this type, for which type_tree must have a path: {ty:?}"))
.as_ref();

if let Some(default_type) = PrimitiveType::new(path) {
Expand Down