/claim #164
This PR starts the migration of destination-parameter functions to the rosenpass-to pattern as discussed in issue #164.
The scope of this change is intentionally small. The goal is to validate the migration approach on a single utility function before continuing with further refactors.
This PR converts b64_decode in util/src/b64.rs from a destination-parameter function:
rust
fn b64_decode(input: &[u8], output: &mut [u8]) -> anyhow::Result<()>
to a function returning:
impl To<[u8], anyhow::Result<()>>
implemented using with_destination. All direct call sites were updated accordingly.
⸻
Behavioral Changes
None.
This is a mechanical refactor only:
⸻
Pattern Followed
The refactor follows:
No new abstractions or extension traits were introduced.
⸻
Validation
The following checks were performed:
Rishi Jat
@rishi-jat
Rosenpass
@rosenpass