Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
f5ffe0b5
Commit
f5ffe0b5
authored
Apr 14, 2026
by
Andrew Imm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
styling nits
parent
af70a8cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
mod.rs
crates/next-core/src/next_font/google/mod.rs
+9
-9
No files found.
crates/next-core/src/next_font/google/mod.rs
View file @
f5ffe0b5
...
@@ -718,20 +718,20 @@ async fn fetch_real_stylesheet(
...
@@ -718,20 +718,20 @@ async fn fetch_real_stylesheet(
disk_cache
:
&
Option
<
FontDiskCache
>
,
disk_cache
:
&
Option
<
FontDiskCache
>
,
)
->
Result
<
Option
<
Vc
<
RcStr
>>>
{
)
->
Result
<
Option
<
Vc
<
RcStr
>>>
{
// Check disk cache first
// Check disk cache first
if
let
Some
(
cache
)
=
disk_cache
{
if
let
Some
(
cache
)
=
disk_cache
if
let
Some
(
css
)
=
cache
.get_css
(
&
stylesheet_url
)
{
&&
let
Some
(
css
)
=
cache
.get_css
(
&
stylesheet_url
)
return
Ok
(
Some
(
Vc
::
cell
(
css
.into
())));
{
}
return
Ok
(
Some
(
Vc
::
cell
(
css
.into
())));
}
}
let
body
=
let
body
=
fetch_from_google_fonts
(
fetch_client
,
stylesheet_url
.clone
(),
css_virtual_path
)
.await
?
;
fetch_from_google_fonts
(
fetch_client
,
stylesheet_url
.clone
(),
css_virtual_path
)
.await
?
;
if
let
Some
(
body
)
=
&
body
{
if
let
Some
(
body
)
=
&
body
if
let
Some
(
cache
)
=
disk_cache
{
&&
let
Some
(
cache
)
=
disk_cache
let
css_str
=
body
.to_string
()
.await
?
;
{
cache
.set_css
(
&
stylesheet_url
,
&
css_str
)
;
let
css_str
=
body
.to_string
()
.await
?
;
}
cache
.set_css
(
&
stylesheet_url
,
&
css_str
);
}
}
Ok
(
body
.map
(|
body
|
body
.to_string
()))
Ok
(
body
.map
(|
body
|
body
.to_string
()))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment