remove extern crate (#30311)

* remove extern crate

* Update components/script_plugins/lib.rs

Co-authored-by: Martin Robinson <mrobinson@igalia.com>

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Samson 2023-09-08 14:11:31 +02:00 committed by GitHub
parent a0cff6a085
commit 711dbbd4af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
274 changed files with 415 additions and 429 deletions

View file

@ -8,11 +8,6 @@
#![deny(unsafe_code)]
#[macro_use]
extern crate html5ever;
#[macro_use]
extern crate malloc_size_of_derive;
pub mod message;
pub mod rpc;
pub mod wrapper_traits;
@ -21,6 +16,7 @@ use atomic_refcell::AtomicRefCell;
use canvas_traits::canvas::{CanvasId, CanvasMsg};
use ipc_channel::ipc::IpcSender;
use libc::c_void;
use malloc_size_of_derive::MallocSizeOf;
use net_traits::image_cache::PendingImageId;
use script_traits::UntrustedNodeAddress;
use servo_url::{ImmutableOrigin, ServoUrl};

View file

@ -9,6 +9,7 @@ use crossbeam_channel::{Receiver, Sender};
use euclid::default::{Point2D, Rect};
use gfx_traits::Epoch;
use ipc_channel::ipc::{IpcReceiver, IpcSender};
use malloc_size_of_derive::MallocSizeOf;
use metrics::PaintTimeMetrics;
use msg::constellation_msg::{BackgroundHangMonitorRegister, BrowsingContextId, PipelineId};
use net_traits::image_cache::ImageCache;

View file

@ -11,6 +11,9 @@ use crate::SVGSVGData;
use crate::StyleAndOpaqueLayoutData;
use atomic_refcell::AtomicRef;
use gfx_traits::{combine_id_with_fragment_type, ByteIndex, FragmentType};
use html5ever::local_name;
use html5ever::namespace_url;
use html5ever::ns;
use html5ever::{LocalName, Namespace};
use msg::constellation_msg::{BrowsingContextId, PipelineId};
use net_traits::image::base::{Image, ImageMetadata};