From f71019258209674b52b0e3e384509413f77483dc Mon Sep 17 00:00:00 2001 From: zxj Date: Mon, 29 Jul 2024 10:58:39 +0800 Subject: [PATCH] edit example --- example/src/custom_appender_tokio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/custom_appender_tokio.rs b/example/src/custom_appender_tokio.rs index e58f33f..8f24379 100644 --- a/example/src/custom_appender_tokio.rs +++ b/example/src/custom_appender_tokio.rs @@ -9,7 +9,7 @@ struct CustomLog { } impl LogAppender for CustomLog { - fn do_logs(&self, records: &[FastLogRecord]) { + fn do_logs(&mut self, records: &[FastLogRecord]) { let mut datas = String::new(); for record in records { let now = DateTime::from(record.now);