diff --git a/Cargo.lock b/Cargo.lock index 5f28e6a0..b0f01787 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -789,9 +789,9 @@ dependencies = [ [[package]] name = "os_info" -version = "2.0.8" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2cc1b4330bb29087e791ae2a5cf56be64fb8946a4ff5aec2ba11c6ca51f5d60" +checksum = "09300db72fca7d425d1f51b76b881fdcc63241fdc952b5cd013f8a6f8c01e6d5" dependencies = [ "log", "serde", diff --git a/Cargo.toml b/Cargo.toml index 975f0c27..3e54b3ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ yaml-rust = "0.4" pest = "^2.1" pest_derive = "^2.1" regex = "1.3.9" -os_info = "2.0.8" +os_info = "3.0.0" urlencoding = "1.1.1" open = "1.4.0" unicode-width = "0.1.8" diff --git a/src/bug_report.rs b/src/bug_report.rs index d9104ab1..2ea9d5ec 100644 --- a/src/bug_report.rs +++ b/src/bug_report.rs @@ -212,7 +212,7 @@ mod tests { let starship_version = "0.1.2"; let environment = Environment { os_type: os_info::Type::Linux, - os_version: os_info::Version::semantic(1, 2, 3, Some("test".to_string())), + os_version: os_info::Version::Semantic(1, 2, 3), shell_info: ShellInfo { name: "test_shell".to_string(), version: "2.3.4".to_string(),