Clarify a comment.
`reverse_encode` isn't necessary to please the borrow checker, it's to match the ordering done by `reverse_decode`.
This commit is contained in:
parent
bc70d0db92
commit
9a785e0aa5
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ macro_rules! with_api {
|
|||
}
|
||||
|
||||
// FIXME(eddyb) this calls `encode` for each argument, but in reverse,
|
||||
// to avoid borrow conflicts from borrows started by `&mut` arguments.
|
||||
// to match the ordering in `reverse_decode`.
|
||||
macro_rules! reverse_encode {
|
||||
($writer:ident;) => {};
|
||||
($writer:ident; $first:ident $(, $rest:ident)*) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue