From 63a821b78b5a293c0eb5b3ecc18d67bde8331eda Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 15 Dec 2020 16:52:55 +1100 Subject: fix(cli): make dynamic import errors catchable (#8750) Fixes #6259 --- core/modules.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/modules.rs b/core/modules.rs index 6f330f559..546f2464f 100644 --- a/core/modules.rs +++ b/core/modules.rs @@ -43,7 +43,7 @@ pub type ModuleLoadId = i32; // that happened; not only first and final target. It would simplify a lot // of things throughout the codebase otherwise we may end up requesting // intermediate redirects from file loader. -#[derive(Debug, Eq, PartialEq)] +#[derive(Debug, Clone, Eq, PartialEq)] pub struct ModuleSource { pub code: String, pub module_url_specified: String, -- cgit v1.2.3