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:
parent
34f212f257
commit
c98d9bf709
1 changed files with 3 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue