Skip to content

Commit

Permalink
fix(log): fix type inference issue in log.rs
Browse files Browse the repository at this point in the history
The type inference issue in log.rs was causing a compilation error. This commit fixes the issue by changing the type of the `collect` function call to `Vec<_>`.
  • Loading branch information
liblaf committed Nov 24, 2023
1 parent 0d48d56 commit bc42c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ where
.skip(1)
.enumerate()
.map(|(i, e)| format!("{:>5}: {}", i, e))
.collect::<Vec<String>>()
.collect::<Vec<_>>()
.join("\n");
if !sources.is_empty() {
message += "\nCaused by:\n";
Expand Down

0 comments on commit bc42c74

Please sign in to comment.