Skip to content

Commit 2c78550

Browse files
authored
refactor(core): derive equality traits for ResolutionKind enum (denoland#17578)
The commit derives Eq, PartialEq, and Debug traits for the `ResolutionKind` enum to make it possible for external implementors to assert ResolutionKind.
1 parent 50ba8ae commit 2c78550

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/modules.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ pub type ModuleSourceFuture = dyn Future<Output = Result<ModuleSource, Error>>;
204204
type ModuleLoadFuture =
205205
dyn Future<Output = Result<(ModuleRequest, ModuleSource), Error>>;
206206

207+
#[derive(Debug, PartialEq, Eq)]
207208
pub enum ResolutionKind {
208209
/// This kind is used in only one situation: when a module is loaded via
209210
/// `JsRuntime::load_main_module` and is the top-level module, ie. the one

0 commit comments

Comments
 (0)