[pbs-devel] [PATCH proxmox-backup v7 4/8] backup-proxy: decouple stats gathering from rrd update
Matthias Heiserer
m.heiserer at proxmox.com
Thu Jun 2 16:09:15 CEST 2022
8<---snip snap
> + rrd_update_disk_stat(&hostdisk, "host");
^^^^^^
> +
> + for stat in datastores {
> + let rrd_prefix = format!("datastore/{}", stat.name);
> + rrd_update_disk_stat(&stat, &rrd_prefix);
^^^^^
> + }
> +}
Clippy says that the two marked parameters are a needless borrows, as
they are already references.
More information about the pbs-devel
mailing list