From 2c7855014498eeae4543aaf6934d3f2bcc818b79 Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Sun, 29 Jan 2023 16:09:43 +0400 Subject: refactor(core): derive equality traits for `ResolutionKind` enum (#17578) The commit derives Eq, PartialEq, and Debug traits for the `ResolutionKind` enum to make it possible for external implementors to assert ResolutionKind. --- core/modules.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'core/modules.rs') diff --git a/core/modules.rs b/core/modules.rs index 9a7445959..19d1f4fb2 100644 --- a/core/modules.rs +++ b/core/modules.rs @@ -204,6 +204,7 @@ pub type ModuleSourceFuture = dyn Future>; type ModuleLoadFuture = dyn Future>; +#[derive(Debug, PartialEq, Eq)] pub enum ResolutionKind { /// This kind is used in only one situation: when a module is loaded via /// `JsRuntime::load_main_module` and is the top-level module, ie. the one -- cgit v1.2.3