linux: various fixes across the crates to make it compile

This commit is contained in:
Dzmitry Malyshau
2024-02-03 00:06:20 -08:00
parent 7c7aad5e76
commit 2e32f5867e
7 changed files with 11 additions and 9 deletions
+2 -2
View File
@@ -3,13 +3,13 @@ use crate::{
PlatformTextSystem, RenderGlyphParams, Size,
};
use anyhow::Result;
use std::sync::Arc;
use std::borrow::Cow;
pub(crate) struct TestTextSystem {}
#[allow(unused)]
impl PlatformTextSystem for TestTextSystem {
fn add_fonts(&self, fonts: &[Arc<Vec<u8>>]) -> Result<()> {
fn add_fonts(&self, fonts: Vec<Cow<'static, [u8]>>) -> Result<()> {
unimplemented!()
}
fn all_font_names(&self) -> Vec<String> {