Skip to content

Commit 4bb7e63

Browse files
committed
chore(std): use tg::Referent::with_item
1 parent 5afa6e8 commit 4bb7e63

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

packages/std/packages/ld_proxy/src/main.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -455,14 +455,8 @@ async fn create_wrapper(options: &Options) -> tg::Result<()> {
455455
futures::future::try_join_all(library_paths.unwrap().into_iter().map(
456456
|dir_with_subpath| async {
457457
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);
466460
Ok::<_, tg::Error>((key, value))
467461
},
468462
))

packages/std/packages/std/manifest.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -461,14 +461,7 @@ pub fn collect_dependencies_from_mutation_data(
461461
}
462462

463463
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()))
472465
}
473466

474467
/// The compiled `tangram_wrapper` file this process should append manifests to.

0 commit comments

Comments
 (0)