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

add buffer for file reading #662

Merged
merged 1 commit into from
Dec 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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