5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-03 01:18:02 +03:00

client: remove unnecessary deref

Fixes the needless_option_as_deref clippy lint:

```
warning: derefed type is same as origin
    --> proxmox-backup-client/src/main.rs:1154:21
     |
1154 |                     payload_target.as_ref().as_deref(),
     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `payload_target.as_ref()`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
     = note: `#[warn(clippy::needless_option_as_deref)]` on by default
```

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
Maximiliano Sandoval 2024-12-02 10:58:01 +01:00 committed by Fabian Grünbichler
parent 23e91fdd98
commit 2dff4d2d6d

View File

@ -1149,7 +1149,7 @@ async fn create_backup(
&client,
&filename,
&target,
payload_target.as_ref().as_deref(),
payload_target.as_ref(),
chunk_size_opt,
catalog.as_ref().cloned(),
pxar_options,