[pve-devel] [PATCH proxmox-perl-rs 01/15] pve-rs: apt: clippy: the borrowed expression implements the required traits

Lukas Wagner l.wagner at proxmox.com
Thu Jun 20 13:50:07 CEST 2024


Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 common/src/apt/repositories.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/src/apt/repositories.rs b/common/src/apt/repositories.rs
index e710819..6e0a196 100644
--- a/common/src/apt/repositories.rs
+++ b/common/src/apt/repositories.rs
@@ -42,7 +42,7 @@ pub mod export {
     #[export]
     pub fn repositories(product: &str) -> Result<RepositoriesResult, Error> {
         let (files, errors, digest) = proxmox_apt::repositories::repositories()?;
-        let digest = hex::encode(&digest);
+        let digest = hex::encode(digest);
 
         let suite = proxmox_apt::repositories::get_current_release_codename()?;
 
-- 
2.39.2





More information about the pve-devel mailing list