Skip to content

Commit 6bdc2eb

Browse files
committed
Fix the test compile error
1 parent ea29d21 commit 6bdc2eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/style/font/ttf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,10 @@ mod test {
307307
// the test case may be run in parallel. Thus the font cache
308308
// may contains other fonts.
309309
let _a = load_font_data(FontFamily::Serif, FontStyle::Normal)?;
310-
assert!(CACHE.read().unwrap().contains_key("serif"));
310+
assert!(DATA_CACHE.read().unwrap().contains_key("serif"));
311311

312312
let _b = load_font_data(FontFamily::Serif, FontStyle::Normal)?;
313-
assert!(CACHE.read().unwrap().contains_key("serif"));
313+
assert!(DATA_CACHE.read().unwrap().contains_key("serif"));
314314

315315
// TODO: Check they are the same
316316

0 commit comments

Comments
 (0)