style: Fix Gecko build.

This commit is contained in:
Emilio Cobos Álvarez 2018-09-15 18:35:21 +02:00
parent 3d909132ba
commit da5283d066
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 14 additions and 3 deletions

View file

@ -59,6 +59,7 @@ extern crate serde;
#[cfg(feature = "servo")]
extern crate serde_bytes;
extern crate servo_arc;
#[cfg(feature = "servo")]
extern crate servo_channel;
extern crate smallbitvec;
extern crate smallvec;
@ -1024,6 +1025,7 @@ where
// Placeholder for unique case where internals of Sender cannot be measured.
// malloc size of is 0 macro complains about type supplied!
#[cfg(feature = "servo")]
impl<T> MallocSizeOf for servo_channel::Sender<T> {
fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize {
0