Skip to content

Commit 2f2b0df

Browse files
committed
Remove support for the heapsize crate
1 parent 4c36354 commit 2f2b0df

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ encoding_rs = "0.8"
2222
[dependencies]
2323
cssparser-macros = {path = "./macros", version = "0.5"}
2424
dtoa-short = "0.3"
25-
heapsize = {version = ">= 0.3, < 0.5", optional = true}
2625
itoa = "0.4"
2726
matches = "0.1"
2827
phf = {version = "0.8", features = ["macros"]}

src/color.rs

-6
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ impl<'de> Deserialize<'de> for RGBA {
101101
}
102102
}
103103

104-
#[cfg(feature = "heapsize")]
105-
known_heap_size!(0, RGBA);
106-
107104
impl ToCss for RGBA {
108105
fn to_css<W>(&self, dest: &mut W) -> fmt::Result
109106
where
@@ -141,9 +138,6 @@ pub enum Color {
141138
RGBA(RGBA),
142139
}
143140

144-
#[cfg(feature = "heapsize")]
145-
known_heap_size!(0, Color);
146-
147141
impl ToCss for Color {
148142
fn to_css<W>(&self, dest: &mut W) -> fmt::Result
149143
where

src/serializer.rs

-3
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,6 @@ impl_tocss_for_float!(f64);
402402
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
403403
pub struct TokenSerializationType(TokenSerializationTypeVariants);
404404

405-
#[cfg(feature = "heapsize")]
406-
known_heap_size!(0, TokenSerializationType);
407-
408405
impl TokenSerializationType {
409406
/// Return a value that represents the absence of a token, e.g. before the start of the input.
410407
pub fn nothing() -> TokenSerializationType {

0 commit comments

Comments
 (0)