mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Derive Debug for more font-related types
This commit is contained in:
parent
7197e7f311
commit
3c5a3ca4ff
3 changed files with 9 additions and 4 deletions
|
@ -77,7 +77,7 @@ impl FontFamily {
|
|||
}
|
||||
|
||||
/// Commands that the FontContext sends to the font cache task.
|
||||
#[derive(Deserialize, Serialize)]
|
||||
#[derive(Deserialize, Serialize, Debug)]
|
||||
pub enum Command {
|
||||
GetFontTemplate(String, FontTemplateDescriptor, IpcSender<Reply>),
|
||||
GetLastResortFontTemplate(FontTemplateDescriptor, IpcSender<Reply>),
|
||||
|
@ -87,7 +87,7 @@ pub enum Command {
|
|||
}
|
||||
|
||||
/// Reply messages sent from the font cache task to the FontContext caller.
|
||||
#[derive(Deserialize, Serialize)]
|
||||
#[derive(Deserialize, Serialize, Debug)]
|
||||
pub enum Reply {
|
||||
GetFontTemplateReply(Option<Arc<FontTemplateData>>),
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ impl FontCache {
|
|||
|
||||
/// The public interface to the font cache task, used exclusively by
|
||||
/// the per-thread/task FontContext structures.
|
||||
#[derive(Clone, Deserialize, Serialize)]
|
||||
#[derive(Clone, Deserialize, Serialize, Debug)]
|
||||
pub struct FontCacheTask {
|
||||
chan: IpcSender<Command>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue