Skip to content

Commit

Permalink
Fix MSRV errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CerulanLumina authored and CerulanLumina committed Jul 14, 2023
1 parent 20a8161 commit d47f1d4
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 d47f1d4

Please sign in to comment.