commit 8a676065ca3ee64987a250908ce945eb0a03d7c7
parent 97e517cfa172b2f8dd9e987c1089fd82f39aad7a
Author: Nico Burns <nico@nicoburns.com>
Date: Mon, 15 Dec 2025 19:03:57 +0000
Bug 2005254: Set malloc_size_of crate edition to 2021 (r=firefox-style-system-reviewers,dshin)
This matches the other Stylo crates and silences a warning about edition
not being set.
Differential Revision: https://phabricator.services.mozilla.com/D275843
Diffstat:
2 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/servo/components/malloc_size_of/Cargo.toml b/servo/components/malloc_size_of/Cargo.toml
@@ -5,6 +5,7 @@ authors = ["The Servo Project Developers"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/servo/stylo"
description = "An allocator-agnostic crate for measuring the heap size of a value"
+edition = "2021"
[lib]
path = "lib.rs"
diff --git a/servo/components/malloc_size_of/lib.rs b/servo/components/malloc_size_of/lib.rs
@@ -46,15 +46,6 @@
//! Note: WebRender has a reduced fork of this crate, so that we can avoid
//! publishing this crate on crates.io.
-extern crate app_units;
-extern crate cssparser;
-extern crate euclid;
-extern crate selectors;
-extern crate servo_arc;
-extern crate smallbitvec;
-extern crate smallvec;
-extern crate void;
-
use std::hash::{BuildHasher, Hash};
use std::mem::size_of;
use std::ops::Range;