Skip to content

Commit 5ecafcc

Browse files
tottotoseanmonstar
authored andcommitted
refactor(body): refactor redundant closure style
1 parent 464d3ae commit 5ecafcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/body/incoming.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ impl Sender {
420420
None => return Err(None),
421421
};
422422

423-
tx.send(trailers).map_err(|err| Some(err))
423+
tx.send(trailers).map_err(Some)
424424
}
425425

426426
#[cfg(test)]

0 commit comments

Comments
 (0)