Skip to content

Commit 614eb9a

Browse files
fix: handle directory creation errors in sol-macro-gen (#12198)
Update sol_macro_gen.rs Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
1 parent 824fd99 commit 614eb9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/sol-macro-gen/src/sol_macro_gen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl MultiSolMacroGen {
126126
self.generate_bindings(all_derives)?;
127127

128128
let src = bindings_path.join("src");
129-
let _ = fs::create_dir_all(&src);
129+
fs::create_dir_all(&src)?;
130130

131131
// Write Cargo.toml
132132
let cargo_toml_path = bindings_path.join("Cargo.toml");
@@ -226,7 +226,7 @@ edition = "2021"
226226
) -> Result<()> {
227227
self.generate_bindings(all_derives)?;
228228

229-
let _ = fs::create_dir_all(bindings_path);
229+
fs::create_dir_all(bindings_path)?;
230230

231231
let mut mod_contents =
232232
r#"#![allow(unused_imports, unused_attributes, clippy::all, rustdoc::all)]

0 commit comments

Comments
 (0)