From 645d52308b78a94dce2cfbddec83be86e70d6b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 30 Dec 2021 13:57:27 +0100 Subject: [PATCH] TimeSpan: parse via FromStr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- src/tape/test/alloc_writable_media.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tape/test/alloc_writable_media.rs b/src/tape/test/alloc_writable_media.rs index ce512962..08de612f 100644 --- a/src/tape/test/alloc_writable_media.rs +++ b/src/tape/test/alloc_writable_media.rs @@ -5,7 +5,6 @@ use std::path::PathBuf; use anyhow::Error; -use proxmox_time::parse_time_span; use pbs_api_types::{RetentionPolicy, MediaSetPolicy}; use crate::tape::{Inventory, MediaPool}; @@ -149,7 +148,7 @@ fn test_alloc_writable_media_4() -> Result<(), Error> { "p1", &testdir, MediaSetPolicy::AlwaysCreate, - RetentionPolicy::ProtectFor(parse_time_span("12s")?), + RetentionPolicy::ProtectFor("12s".parse()?), None, None, false,