Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
add buffer for file reading (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
laizy authored Dec 9, 2021
1 parent 0b1f3b1 commit eeaab21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ethers-solc/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ impl ArtifactOutput for MinimalCombinedArtifacts {

fn read_cached_artifact(path: impl AsRef<Path>) -> Result<Self::Artifact> {
let file = fs::File::open(path.as_ref())?;
let file = io::BufReader::new(file);
Ok(serde_json::from_reader(file)?)
}

Expand Down

0 comments on commit eeaab21

Please sign in to comment.