chore: fmt
This commit is contained in:
parent
7511d22c2f
commit
85d7c07fa8
|
@ -572,10 +572,7 @@ impl Solc {
|
||||||
#[cfg(feature = "async")]
|
#[cfg(feature = "async")]
|
||||||
impl Solc {
|
impl Solc {
|
||||||
/// Convenience function for compiling all sources under the given path
|
/// Convenience function for compiling all sources under the given path
|
||||||
pub async fn async_compile_source(
|
pub async fn async_compile_source(&self, path: impl AsRef<Path>) -> Result<CompilerOutput> {
|
||||||
&self,
|
|
||||||
path: impl AsRef<Path>,
|
|
||||||
) -> Result<CompilerOutput> {
|
|
||||||
self.async_compile(&CompilerInput::with_sources(Source::async_read_all_from(path).await?))
|
self.async_compile(&CompilerInput::with_sources(Source::async_read_all_from(path).await?))
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue