Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit a818074

Browse files
committed
Silence solc link command
1 parent bcfa14f commit a818074

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

solc/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ mod platform {
3636

3737
use std::path::Path;
3838
use std::{fs, io};
39+
use std::process::Stdio;
3940

4041
/// Compiles all solidity files in given directory.
4142
pub fn compile<T: AsRef<Path>>(path: T) {
@@ -86,6 +87,8 @@ pub fn link<T: AsRef<Path>>(libraries: Vec<String>, target: String, path: T) {
8687
command.arg(target);
8788

8889
let child = command
90+
.stdout(Stdio::null())
91+
.stderr(Stdio::null())
8992
.current_dir(path)
9093
.status()
9194
.unwrap_or_else(|e| panic!("Error linking solidity contracts: {}", e));

0 commit comments

Comments
 (0)