Skip to content

Commit

Permalink
use result pattern in cmd/crates/soroban-spec-typescript/src/boilerpl…
Browse files Browse the repository at this point in the history
…ate.rs

Co-authored-by: Willem Wyndham <[email protected]>
  • Loading branch information
chadoh and willemneal authored Mar 21, 2024
1 parent 5161053 commit 201d5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/crates/soroban-spec-typescript/src/boilerplate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl Project {
.into_iter()
.try_for_each(|file_name| {
let file = &root.join(file_name);
let mut contents = fs::read_to_string(file).unwrap();
let mut contents = fs::read_to_string(file)?;
for (pattern, replacement) in replacement_strings {
contents = contents.replace(pattern, replacement);
}
Expand Down

0 comments on commit 201d5d6

Please sign in to comment.