From c98d9bf7097575ec9832864f0e0d076a4763717c Mon Sep 17 00:00:00 2001 From: andy finch Date: Sat, 20 Jul 2019 11:02:54 -0400 Subject: removed unnecessary implementation from SourceFileFetcher (#2670) --- cli/deno_dir.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'cli') 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; + ) -> Result { + 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 { - tokio_util::block_on(self.fetch_source_file_async(specifier)) - } } // stuff related to SourceFileFetcher -- cgit v1.2.3