From 711dbbd4afe161fc334db198357d814e99e5ac57 Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Fri, 8 Sep 2023 14:11:31 +0200 Subject: remove `extern crate` (#30311) * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson --------- Co-authored-by: Martin Robinson --- components/pixels/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'components/pixels/lib.rs') diff --git a/components/pixels/lib.rs b/components/pixels/lib.rs index 88d845a3033..46a567d78e9 100644 --- a/components/pixels/lib.rs +++ b/components/pixels/lib.rs @@ -2,11 +2,9 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -#[macro_use] -extern crate serde; - use euclid::default::{Point2D, Rect, Size2D}; use malloc_size_of_derive::MallocSizeOf; +use serde::{Deserialize, Serialize}; use std::borrow::Cow; #[derive(Clone, Copy, Debug, Deserialize, Eq, MallocSizeOf, PartialEq, Serialize)] -- cgit v1.2.3