backup_info: use two independent Into<String> types
there's no reason to force them to be the same input type Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
3ec3ec3f9a
commit
93b49ce38a
|
@ -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() }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue