File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -455,14 +455,8 @@ async fn create_wrapper(options: &Options) -> tg::Result<()> {
455
455
futures:: future:: try_join_all ( library_paths. unwrap ( ) . into_iter ( ) . map (
456
456
|dir_with_subpath| async {
457
457
let key = tg:: Reference :: with_object ( & dir_with_subpath. id . clone ( ) . into ( ) ) ;
458
- let value = tg:: Referent {
459
- item : tg:: Directory :: with_id ( dir_with_subpath. id ) . into ( ) ,
460
- options : tg:: referent:: Options {
461
- id : None ,
462
- path : None ,
463
- tag : None ,
464
- } ,
465
- } ;
458
+ let item = tg:: Directory :: with_id ( dir_with_subpath. id ) . into ( ) ;
459
+ let value = tg:: Referent :: with_item ( item) ;
466
460
Ok :: < _ , tg:: Error > ( ( key, value) )
467
461
} ,
468
462
) )
Original file line number Diff line number Diff line change @@ -461,14 +461,7 @@ pub fn collect_dependencies_from_mutation_data(
461
461
}
462
462
463
463
fn dependency_from_object_id ( id : & tg:: object:: Id ) -> tg:: Referent < tg:: Object > {
464
- tg:: Referent {
465
- item : tg:: Object :: with_id ( id. clone ( ) ) ,
466
- options : tg:: referent:: Options {
467
- id : None ,
468
- path : None ,
469
- tag : None ,
470
- } ,
471
- }
464
+ tg:: Referent :: with_item ( tg:: Object :: with_id ( id. clone ( ) ) )
472
465
}
473
466
474
467
/// The compiled `tangram_wrapper` file this process should append manifests to.
You can’t perform that action at this time.
0 commit comments