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:
Wolfgang Bumiller 2019-03-05 09:13:07 +01:00
parent 3ec3ec3f9a
commit 93b49ce38a
1 changed files with 1 additions and 1 deletions

View 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() }
}