mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
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.
This commit is contained in:
parent
50ba8ae6b2
commit
2c78550144
1 changed files with 1 additions and 0 deletions
|
@ -204,6 +204,7 @@ pub type ModuleSourceFuture = dyn Future<Output = Result<ModuleSource, Error>>;
|
|||
type ModuleLoadFuture =
|
||||
dyn Future<Output = Result<(ModuleRequest, ModuleSource), Error>>;
|
||||
|
||||
#[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
|
||||
|
|
Loading…
Reference in a new issue