[pbs-devel] applied: [PATCH backup] tree-wide: replace serde_json::from_value(a_value.clone())

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Apr 12 16:55:09 CEST 2022


On 12.04.22 12:39, Wolfgang Bumiller wrote:
> `&Value` itself implements `Deserializer` and can therefore
> be passed directly to `T::deserialize` without requiring an
> intermediate `clone()`. (This also enables optionally
> borrowing strings if the result has a short enough lifetime)
> 
> Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> ---
>  pbs-client/Cargo.toml              | 1 +
>  pbs-client/src/tools/key_source.rs | 2 +-
>  pbs-datastore/src/manifest.rs      | 4 ++--
>  proxmox-file-restore/src/main.rs   | 4 ++--
>  src/acme/plugin.rs                 | 2 +-
>  src/api2/config/acme.rs            | 2 +-
>  src/api2/node/network.rs           | 4 ++--
>  src/bin/proxmox_tape/media.rs      | 3 ++-
>  8 files changed, 12 insertions(+), 10 deletions(-)
> 
>

applied, thanks!





More information about the pbs-devel mailing list