1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

removed unnecessary implementation from SourceFileFetcher (#2670)

This commit is contained in:
andy finch 2019-07-20 11:02:54 -04:00 committed by Ryan Dahl
parent 34f212f257
commit c98d9bf709

View file

@ -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