1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Description: use older minor version of crate sysinfo
Author: Jonas Smedegaard <dr@jones.dk>
Bug-Debian: https://bugs.debian.org/1111261
Forwarded: not-needed
Last-Update: 2026-02-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -129,7 +129,7 @@
toml = { version = "0.9.10", default-features = false, features = ["display", "serde"] }
serde = "1.0.228"
backtrace = "0.3.75"
-sysinfo = { version = "0.37.2", default-features = false, features = ["system"] }
+sysinfo = { version = "0.30.13", default-features = false }
[lints]
workspace = true
--- a/src/report.rs
+++ b/src/report.rs
@@ -46,7 +46,7 @@
let cpu_arch = sysinfo::System::cpu_arch();
let operating_system =
sysinfo::System::long_os_version().unwrap_or_else(|| "unknown".to_owned());
- let operating_system = format!("{operating_system} [{cpu_arch}]");
+ let operating_system = format!("{operating_system} [{}", cpu_arch.as_deref().unwrap_or("unknown"));
let backtrace = render_backtrace();
Self {
|