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:
parent
6532264b81
commit
979d9d0aa0
5 changed files with 9 additions and 12 deletions
|
@ -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" => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue