File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,7 @@ impl FontCacheThread {
491
491
// TODO: Allow users to specify these.
492
492
let generic_fonts = populate_generic_fonts ( ) ;
493
493
494
+ #[ allow( clippy:: default_constructed_unit_structs) ]
494
495
let mut cache = FontCache {
495
496
port,
496
497
channel_to_self,
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ pub struct FontContext<S: FontSource> {
65
65
66
66
impl < S : FontSource > FontContext < S > {
67
67
pub fn new ( font_source : S ) -> FontContext < S > {
68
+ #[ allow( clippy:: default_constructed_unit_structs) ]
68
69
let handle = FontContextHandle :: default ( ) ;
69
70
FontContext {
70
71
platform_handle : handle,
Original file line number Diff line number Diff line change 77
77
let heap_buffer_source = match init {
78
78
HeapTypedArrayInit :: Buffer ( buffer_source) => HeapBufferSource {
79
79
buffer_source,
80
- phantom : PhantomData :: default ( ) ,
80
+ phantom : PhantomData ,
81
81
} ,
82
82
HeapTypedArrayInit :: Info { len, cx } => {
83
83
rooted ! ( in ( * cx) let mut array = ptr:: null_mut:: <JSObject >( ) ) ;
@@ -125,7 +125,7 @@ where
125
125
pub fn default ( ) -> HeapBufferSource < T > {
126
126
HeapBufferSource {
127
127
buffer_source : BufferSource :: Default ( Box :: new ( Heap :: default ( ) ) ) ,
128
- phantom : PhantomData :: default ( ) ,
128
+ phantom : PhantomData ,
129
129
}
130
130
}
131
131
@@ -436,7 +436,7 @@ where
436
436
437
437
HeapBufferSource {
438
438
buffer_source : BufferSource :: ArrayBuffer ( Heap :: boxed ( * array_buffer) ) ,
439
- phantom : PhantomData :: default ( ) ,
439
+ phantom : PhantomData ,
440
440
}
441
441
}
442
442
}
You can’t perform that action at this time.
0 commit comments