Commit d00c3ef
committed
Update function signatures to use named lifetimes
Refactor `cast_options_from_proto` to accept a named lifetime `'a`,
allowing both protobuf inputs to borrow with `&'a`. Update the
local closure to accept `&'a protobuf::FormatOptions` so that the
returned `FormatOptions` borrows are well-scoped, ensuring better
memory safety and usability.1 parent 3c6481a commit d00c3ef
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | | - | |
| 554 | + | |
| 555 | + | |
556 | 556 | | |
557 | | - | |
558 | | - | |
559 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| |||
0 commit comments