From 138144633d73aeed82fea0553671b40e5bb714af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 26 Nov 2024 15:38:56 +0900 Subject: [PATCH] Fix more --- crates/next-core/src/next_font/google/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/next-core/src/next_font/google/mod.rs b/crates/next-core/src/next_font/google/mod.rs index 787ebd7124f86..3fdd46f145a91 100644 --- a/crates/next-core/src/next_font/google/mod.rs +++ b/crates/next-core/src/next_font/google/mod.rs @@ -78,7 +78,7 @@ pub(crate) struct NextFontGoogleReplacer { #[turbo_tasks::value_impl] impl NextFontGoogleReplacer { #[turbo_tasks::function] - pub fn new(project_path: Vc) -> Vc { + pub fn new(project_path: ResolvedVc) -> Vc { Self::cell(NextFontGoogleReplacer { project_path }) } @@ -89,10 +89,10 @@ impl NextFontGoogleReplacer { let query_vc = Vc::cell(query); - let font_data = load_font_data(self.project_path); + let font_data = load_font_data(*self.project_path); let options = font_options_from_query_map(query_vc, font_data); - let fallback = get_font_fallback(self.project_path, options); + let fallback = get_font_fallback(*self.project_path, options); let properties = get_font_css_properties(options, fallback).await?; let js_asset = VirtualSource::new( next_js_file_path("internal/font/google".into()) @@ -170,7 +170,7 @@ impl ImportMappingReplacement for NextFontGoogleReplacer { }; let this = &*self.await?; - if can_use_next_font(this.project_path, **query).await? { + if can_use_next_font(*this.project_path, **query).await? { Ok(self.import_map_result(query.await?.as_str().into())) } else { Ok(ImportMapResult::NoEntry.into())