summaryrefslogtreecommitdiffstats
path: root/vendor/sysinfo/src/unknown/system.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sysinfo/src/unknown/system.rs')
-rw-r--r--vendor/sysinfo/src/unknown/system.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/sysinfo/src/unknown/system.rs b/vendor/sysinfo/src/unknown/system.rs
index 4603ae737..c205cdf96 100644
--- a/vendor/sysinfo/src/unknown/system.rs
+++ b/vendor/sysinfo/src/unknown/system.rs
@@ -123,6 +123,13 @@ impl SystemExt for System {
&mut []
}
+ fn sort_disks_by<F>(&mut self, _compare: F)
+ where
+ F: FnMut(&Disk, &Disk) -> std::cmp::Ordering,
+ {
+ // does nothing.
+ }
+
fn uptime(&self) -> u64 {
0
}
@@ -159,6 +166,10 @@ impl SystemExt for System {
None
}
+ fn distribution_id(&self) -> String {
+ std::env::consts::OS.to_owned()
+ }
+
fn host_name(&self) -> Option<String> {
None
}