1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-05 02:39:53 +02:00

Update sysinfo to 0.30.5

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2024-02-23 23:18:37 +01:00
parent 6532264b81
commit 979d9d0aa0
No known key found for this signature in database
5 changed files with 9 additions and 12 deletions

View file

@ -17,7 +17,7 @@ use hyper::{
use protobuf::{Enum, Message, MessageFull};
use rand::RngCore;
use sha1::{Digest, Sha1};
use sysinfo::{System, SystemExt};
use sysinfo::System;
use thiserror::Error;
use crate::{
@ -204,9 +204,8 @@ impl SpClient {
.platform_specific_data
.mut_or_insert_default();
let sys = System::new();
let os_version = sys.os_version().unwrap_or_else(|| String::from("0"));
let kernel_version = sys.kernel_version().unwrap_or_else(|| String::from("0"));
let os_version = System::os_version().unwrap_or_else(|| String::from("0"));
let kernel_version = System::kernel_version().unwrap_or_else(|| String::from("0"));
match os {
"windows" => {