mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
clippy: fix warnings in components/gfx (#31560)
* clippy: fix warnings in components/gfx * refactor: switched the order of impl so that its intent is clearer * fix: add font context default in other platforms
This commit is contained in:
parent
1771f9a9a1
commit
88033bd654
17 changed files with 195 additions and 234 deletions
|
@ -4,16 +4,10 @@
|
|||
|
||||
use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct FontContextHandle {
|
||||
_ctx: (),
|
||||
}
|
||||
|
||||
impl FontContextHandle {
|
||||
// this is a placeholder until NSFontManager or whatever is bound in here.
|
||||
pub fn new() -> FontContextHandle {
|
||||
FontContextHandle { _ctx: () }
|
||||
}
|
||||
_ctx: (),
|
||||
}
|
||||
|
||||
impl MallocSizeOf for FontContextHandle {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue