From bc42c740e08d71be103974de50c9d70c0184f530 Mon Sep 17 00:00:00 2001 From: liblaf Date: Fri, 24 Nov 2023 16:55:11 +0800 Subject: [PATCH] fix(log): fix type inference issue in log.rs 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<_>`. --- src/common/log.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/log.rs b/src/common/log.rs index d7d82979..60bab059 100644 --- a/src/common/log.rs +++ b/src/common/log.rs @@ -58,7 +58,7 @@ where .skip(1) .enumerate() .map(|(i, e)| format!("{:>5}: {}", i, e)) - .collect::>() + .collect::>() .join("\n"); if !sources.is_empty() { message += "\nCaused by:\n";