1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 09:49:31 +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

@ -20,7 +20,7 @@ use hyper_rustls::{HttpsConnector, HttpsConnectorBuilder};
use nonzero_ext::nonzero;
use once_cell::sync::OnceCell;
use parking_lot::Mutex;
use sysinfo::{System, SystemExt};
use sysinfo::System;
use thiserror::Error;
use url::Url;
@ -105,9 +105,7 @@ pub struct HttpClient {
impl HttpClient {
pub fn new(proxy_url: Option<&Url>) -> Self {
let zero_str = String::from("0");
let os_version = System::new()
.os_version()
.unwrap_or_else(|| zero_str.clone());
let os_version = System::os_version().unwrap_or_else(|| zero_str.clone());
let (spotify_platform, os_version) = match OS {
"android" => ("Android", os_version),