Skip to content

Commit a9bb947

Browse files
gnunicorndpc
authored andcommitted
Apply suggestions from code review
1 parent 35f7efd commit a9bb947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ where
280280
let join = builder.spawn(move || loop {
281281
match rx.recv().unwrap() {
282282
AsyncMsg::Record(r) => {
283-
r.to_drain(&drain).unwrap();
283+
r.to_log(&drain).unwrap();
284284
}
285285
AsyncMsg::Finish => return,
286286
}
@@ -480,7 +480,7 @@ impl AsyncRecord {
480480
}
481481

482482
/// Writes the record to a `Drain`.
483-
pub fn to_drain<D: Drain>(self, drain: &D) -> Result<D::Ok, D::Err> {
483+
pub fn to_log<D: Drain>(self, drain: &D) -> Result<D::Ok, D::Err> {
484484
let rs = RecordStatic {
485485
location: &*self.location,
486486
level: self.level,

0 commit comments

Comments
 (0)