diff --git a/crates/turbo-tasks-memory/tests/collectibles.rs b/crates/turbo-tasks-memory/tests/collectibles.rs index fa4b99002a18e..19899b094a3dd 100644 --- a/crates/turbo-tasks-memory/tests/collectibles.rs +++ b/crates/turbo-tasks-memory/tests/collectibles.rs @@ -5,7 +5,7 @@ use std::{collections::HashSet, sync::Arc, time::Duration}; use anyhow::Result; use auto_hash_map::AutoSet; use tokio::time::sleep; -use turbo_tasks::{emit, CollectiblesSource, ValueToString, Vc}; +use turbo_tasks::{emit, CollectiblesSource, RcStr, ValueToString, Vc}; use turbo_tasks_testing::{register, run}; register!(); @@ -144,28 +144,22 @@ async fn my_multi_emitting_function() -> Result> { } #[turbo_tasks::function] -async fn my_transitive_emitting_function( - key: Arc, - _key2: Arc, -) -> Result> { +async fn my_transitive_emitting_function(key: RcStr, _key2: Arc) -> Result> { my_emitting_function(key).await?; Ok(Thing::cell(Thing(0))) } #[turbo_tasks::function] -async fn my_transitive_emitting_function_collectibles( - key: Arc, - key2: Arc, -) -> Vc { +async fn my_transitive_emitting_function_collectibles(key: RcStr, key2: RcStr) -> Vc { let result = my_transitive_emitting_function(key, key2); Vc::cell(result.peek_collectibles::>()) } #[turbo_tasks::function] async fn my_transitive_emitting_function_with_child_scope( - key: Arc, - key2: Arc, - _key3: Arc, + key: RcStr, + key2: RcStr, + _key3: RcStr, ) -> Result> { let thing = my_transitive_emitting_function(key, key2); thing.strongly_consistent().await?;