Skip to content

Commit 6ffd9ed

Browse files
committed
Fix warnings
1 parent deb3d49 commit 6ffd9ed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

fontspector-checkapi/src/font.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ use skrifa::{
66
string::{LocalizedStrings, StringId},
77
MetadataProvider, Tag,
88
};
9-
use std::{collections::HashSet, error::Error, io::ErrorKind, path::Path};
9+
use std::{collections::HashSet, error::Error, io::ErrorKind};
10+
11+
#[cfg(not(target_family = "wasm"))]
12+
use std::path::Path;
1013

1114
pub struct TestFont {
12-
filename: String,
15+
pub filename: String,
1316
font_data: Vec<u8>,
1417
_codepoints: HashSet<u32>,
1518
_sibling_filenames: Vec<String>,

0 commit comments

Comments
 (0)