Skip to content

Commit 79a513a

Browse files
committed
Format code for clarity in build_detailed_term_def
Improved code readability by splitting the chained method call on attr.dtypes.first() across multiple lines in build_detailed_term_def.
1 parent 5a98a49 commit 79a513a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/jsonld/export.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ fn build_detailed_term_def(
186186
) -> TermDef {
187187
// Determine type using the first dtype, falling back to parent_object if needed
188188
let object_type = attr
189-
.dtypes.first()
189+
.dtypes
190+
.first()
190191
.and_then(|dtype| find_sub_object(graph, dtype))
191192
.map(|_idx| "@id".to_string());
192193

0 commit comments

Comments
 (0)