diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs index 0e3228ac73c..04ff6b2eaf5 100644 --- a/components/script/script_runtime.rs +++ b/components/script/script_runtime.rs @@ -124,6 +124,7 @@ impl fmt::Debug for CommonScriptMsg { /// A cloneable interface for communicating with an event loop. pub trait ScriptChan: JSTraceable { /// Send a message to the associated event loop. + #[allow(clippy::result_unit_err)] fn send(&self, msg: CommonScriptMsg) -> Result<(), ()>; /// Clone this handle. fn clone(&self) -> Box; @@ -164,6 +165,7 @@ pub enum ScriptThreadEventCategory { /// APIs that need to abstract over multiple kinds of event loops (worker/main thread) with /// different Receiver interfaces. pub trait ScriptPort { + #[allow(clippy::result_unit_err)] fn recv(&self) -> Result; } diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index c0dd80b141b..8b5f0200b54 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -262,6 +262,7 @@ impl InProgressLoad { } #[derive(Debug)] +#[allow(clippy::enum_variant_names)] enum MixedMessage { FromConstellation(ConstellationControlMsg), FromScript(MainThreadScriptMsg),