From f64df5615e79f52fca1f7ba97235e58434919a05 Mon Sep 17 00:00:00 2001 From: ziminq Date: Wed, 4 Sep 2024 20:04:43 +0800 Subject: [PATCH] chore: fix up the README example (#194) Due to the this commit: commit bc96471cf13d1d1030e3773b29609d4fd3621579 Author: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Sat Jun 29 00:20:26 2024 +0200 chore: remove most impl AsRef (#157) The interface for `hardhat()` is updated to `&Path`. --------- Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com> --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a0756ed..88cb13f5 100644 --- a/README.md +++ b/README.md @@ -53,10 +53,11 @@ Example usage: ```rust,ignore use foundry_compilers::{Project, ProjectPathsConfig}; +use std::path::Path; // configure the project with all its paths, solc, cache etc. let project = Project::builder() - .paths(ProjectPathsConfig::hardhat(env!("CARGO_MANIFEST_DIR")).unwrap()) + .paths(ProjectPathsConfig::hardhat(Path::new(env!("CARGO_MANIFEST_DIR"))).unwrap()) .build(Default::default()) .unwrap(); let output = project.compile().unwrap();