style: Implement ArcSlice::default().

Share a singleton to avoid allocating for empty lists.

Differential Revision: https://phabricator.services.mozilla.com/D30543
This commit is contained in:
Emilio Cobos Álvarez 2019-05-16 23:22:04 +00:00
parent ab8776a144
commit 5e4fdf647d
4 changed files with 52 additions and 21 deletions

View file

@ -16,6 +16,8 @@ extern crate bitflags;
#[macro_use]
extern crate cssparser;
extern crate euclid;
#[macro_use]
extern crate lazy_static;
extern crate malloc_size_of;
#[macro_use]
extern crate malloc_size_of_derive;