]> git.proxmox.com Git - proxmox-backup.git/commitdiff
backup_info: use two independent Into<String> types
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 5 Mar 2019 08:13:07 +0000 (09:13 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 5 Mar 2019 08:13:08 +0000 (09:13 +0100)
there's no reason to force them to be the same input type

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/backup/backup_info.rs

index 2aee800b30b8a5b8fa27d12b944775a32c9f01c0..5af5c496f4c3049ef8947261c14c73b90ff41c78 100644 (file)
@@ -44,7 +44,7 @@ pub struct BackupGroup {
 
 impl BackupGroup {
 
-    pub fn new<T: Into<String>>(backup_type: T, backup_id: T) -> Self {
+    pub fn new<T: Into<String>, U: Into<String>>(backup_type: T, backup_id: U) -> Self {
         Self { backup_type: backup_type.into(), backup_id: backup_id.into() }
     }