Skip to content
Merged
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
4 changes: 2 additions & 2 deletions crates/environ/src/component/types_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1228,8 +1228,8 @@ impl TypeInformation {
*self = TypeInformation::string();
let key_info = types.type_information(&ty.key);
let value_info = types.type_information(&ty.value);
// Depth is max of key/value depths, plus 1 for tuple, plus 1 for list
self.depth = key_info.depth.max(value_info.depth) + 2;
// Depth is max of key/value depths, plus 1 for the extra map layer.
self.depth = key_info.depth.max(value_info.depth) + 1;
self.has_borrow = key_info.has_borrow || value_info.has_borrow;
}
}
Loading