From d17be8cf56419f9daaa73ff3c10c2ec3e14cd2c3 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Thu, 16 May 2019 15:37:35 +0300 Subject: [PATCH] Fix wrong usage of ini function --- src/steps/os/linux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index cbf28f4f..82df671b 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -31,7 +31,7 @@ pub enum Distribution { impl Distribution { fn parse_os_release(os_release: &ini::Ini) -> Result { - let section = os_release.section::<&str>(None).unwrap(); + let section = os_release.general_section(); let id = section.get("ID").map(String::as_str); let id_like = section.get("ID_LIKE").map(String::as_str); Ok(match (id, id_like) {