[pbs-devel] [PATCH proxmox-backup v2 1/4] tape: replace '&Path' with 'AsRef<Path>' in function parameters

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Oct 18 10:14:44 CEST 2022


On Thu, Oct 06, 2022 at 01:36:07PM +0200, Dominik Csapak wrote:
> this way we can omit the pattern
> ```
> let status_path = Path::new(TAPE_STATUS_DIR);
> some_function(status_path);
> ```

to be fair, `some_function(Path::new(TAPE_STATUS_DIR))` would work just
fine, but it's often used multiple times, so...
LGTM





More information about the pbs-devel mailing list