diff --git a/src/config/media_pool.rs b/src/config/media_pool.rs index e7d66f42..5e1184e3 100644 --- a/src/config/media_pool.rs +++ b/src/config/media_pool.rs @@ -43,8 +43,8 @@ fn init() -> SectionConfig { config } -pub const MEDIA_POOL_CFG_FILENAME: &'static str = "/etc/proxmox-backup/media-pool.cfg"; -pub const MEDIA_POOL_CFG_LOCKFILE: &'static str = "/etc/proxmox-backup/.media-pool.lck"; +pub const MEDIA_POOL_CFG_FILENAME: &str = "/etc/proxmox-backup/media-pool.cfg"; +pub const MEDIA_POOL_CFG_LOCKFILE: &str = "/etc/proxmox-backup/.media-pool.lck"; pub fn lock() -> Result { open_file_locked(MEDIA_POOL_CFG_LOCKFILE, std::time::Duration::new(10, 0), true) diff --git a/src/tape/drive/mam.rs b/src/tape/drive/mam.rs index 1153863e..7aaa62b8 100644 --- a/src/tape/drive/mam.rs +++ b/src/tape/drive/mam.rs @@ -32,7 +32,7 @@ enum MamFormat { DEC, } -static MAM_ATTRIBUTES: &'static [ (u16, u16, MamFormat, &'static str) ] = &[ +static MAM_ATTRIBUTES: &[ (u16, u16, MamFormat, &str) ] = &[ (0x00_00, 8, MamFormat::DEC, "Remaining Capacity In Partition"), (0x00_01, 8, MamFormat::DEC, "Maximum Capacity In Partition"), (0x00_02, 8, MamFormat::DEC, "Tapealert Flags"),