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 f710192 commit 83fe173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ use log::Level;
struct CustomLog {}

impl LogAppender for CustomLog {
fn do_logs(&self, records: &[FastLogRecord]) {
fn do_logs(&mut self, records: &[FastLogRecord]) {
for record in records {
let now = DateTime::from(record.now);
let data;
Expand Down
2 changes: 1 addition & 1 deletion example/src/custom_appender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use log::Level;
struct CustomLog {}

impl LogAppender for CustomLog {
fn do_logs(&self, records: &[FastLogRecord]) {
fn do_logs(&mut self, records: &[FastLogRecord]) {
for record in records {
let now = DateTime::from(record.now);
let data;
Expand Down

0 comments on commit 83fe173

Please sign in to comment.