mirror of
https://github.com/servo/servo
synced 2026-05-14 02:47:14 +02:00
This implements MallocSizeOf for a couple more types and removes some "ignore_malloc_size_of" throughout the codebase. - std::path::PathBuf - tokio::sync::oneshot::Sender - http::HeaderMap (with a reasonable approximation of iterating over all headers) - data_url::Mime by looking at the inner type - http::Method: Is an enum internally - urlpattern::Urlpattern: Iterating over all public fields that are strings as an approximation. Testing: We cannot test if MallocSizeOf is correct currently. Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>