summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/deno_dir.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/cli/deno_dir.rs b/cli/deno_dir.rs
index 91a39543d..090f0efc9 100644
--- a/cli/deno_dir.rs
+++ b/cli/deno_dir.rs
@@ -81,7 +81,9 @@ pub trait SourceFileFetcher {
fn fetch_source_file(
self: &Self,
specifier: &ModuleSpecifier,
- ) -> Result<SourceFile, ErrBox>;
+ ) -> Result<SourceFile, ErrBox> {
+ tokio_util::block_on(self.fetch_source_file_async(specifier))
+ }
}
// TODO: this list should be implemented on SourceFileFetcher trait
@@ -235,13 +237,6 @@ impl SourceFileFetcher for DenoDir {
Box::new(fut)
}
-
- fn fetch_source_file(
- self: &Self,
- specifier: &ModuleSpecifier,
- ) -> Result<SourceFile, ErrBox> {
- tokio_util::block_on(self.fetch_source_file_async(specifier))
- }
}
// stuff related to SourceFileFetcher