Skip to content

Commit 0daf4e9

Browse files
authored
fix: borrow instead of as string (#674)
1 parent 8be6661 commit 0daf4e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bottlecap/src/logs/lambda/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl LambdaProcessor {
164164
if let Some(metrics) = metrics {
165165
self.invocation_context.runtime_duration_ms = metrics.duration_ms;
166166
if status == Status::Timeout {
167-
message.push_str(format!(" Task timed out after {:.2} seconds", metrics.duration_ms / 1000.0).as_str());
167+
message.push_str(&format!(" Task timed out after {:.2} seconds", metrics.duration_ms / 1000.0));
168168
}
169169
}
170170
// Remove the `request_id` since no more orphan logs will be processed with this one

0 commit comments

Comments
 (0)