Skip to content

Commit

Permalink
Merge pull request #135 from 1Password/CerulanLumina/correct-msrv-errors
Browse files Browse the repository at this point in the history
Format Args - Fix MSRV errors
  • Loading branch information
Lucretiel authored Jul 28, 2023
2 parents 20a8161 + d47f1d4 commit 9f74772
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,13 @@ fn main() {
let parsed_data = glob_paths
.par_iter()
.map(|filepath| {
let data = std::fs::read_to_string(filepath)
.unwrap_or_else(|e| panic!("failed to read file at {filepath:?}: {e}"));
let data = std::fs::read_to_string(filepath).unwrap_or_else(|e| {
panic!(
"failed to read file at {filepath:?}: {e}",
filepath = filepath,
e = e
)
});
let parsed_data = typeshare_core::parser::parse(&data);
if parsed_data.is_err() {
panic!("{}", parsed_data.err().unwrap());
Expand Down

0 comments on commit 9f74772

Please sign in to comment.