refactor: move "rayon" feature under "std"

This commit is contained in:
Itsusinn 2024-06-05 14:05:39 +08:00 committed by Jeremy Soller
parent 1f52b5211c
commit 39c4e3e02b
3 changed files with 10 additions and 13 deletions

View file

@ -160,9 +160,9 @@ impl Font {
}
#[cfg(test)]
mod test{
mod test {
#[test]
fn test_fonts_load_time(){
fn test_fonts_load_time() {
use crate::FontSystem;
use sys_locale::get_locale;
@ -175,9 +175,6 @@ mod test{
FontSystem::new_with_locale_and_db(locale, db);
#[cfg(not(target_arch = "wasm32"))]
println!(
"Fonts load time {}ms.",
now.elapsed().as_millis()
)
println!("Fonts load time {}ms.", now.elapsed().as_millis())
}
}
}