From 93b49ce38ae5f03a3aedbcd93b34cde0c78d856b Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 5 Mar 2019 09:13:07 +0100 Subject: [PATCH] backup_info: use two independent Into types there's no reason to force them to be the same input type Signed-off-by: Wolfgang Bumiller --- src/backup/backup_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backup/backup_info.rs b/src/backup/backup_info.rs index 2aee800b..5af5c496 100644 --- a/src/backup/backup_info.rs +++ b/src/backup/backup_info.rs @@ -44,7 +44,7 @@ pub struct BackupGroup { impl BackupGroup { - pub fn new>(backup_type: T, backup_id: T) -> Self { + pub fn new, U: Into>(backup_type: T, backup_id: U) -> Self { Self { backup_type: backup_type.into(), backup_id: backup_id.into() } }