Skip to content

Commit

Permalink
edit example
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jul 29, 2024
1 parent 43c7038 commit f710192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/custom_appender_tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f710192

Please sign in to comment.