From b80e0180794e361dff0defb24e852bbd2b193698 Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Sat, 1 May 2021 22:52:07 +0200 Subject: [PATCH] Remove libc dependency + setlocale call This is already taken care of in Cursive: https://github.com/gyscos/cursive/commit/e2f79776a41a2acd2daffea3af130c6396b2a289 --- Cargo.lock | 1 - Cargo.toml | 1 - src/main.rs | 4 ---- 3 files changed, 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ab970c4..12e0aba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2023,7 +2023,6 @@ dependencies = [ "futures 0.3.14", "ioctl-rs", "lazy_static", - "libc", "librespot-core", "librespot-playback", "librespot-protocol", diff --git a/Cargo.toml b/Cargo.toml index 8ae10c7..045ef90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,6 @@ clipboard = { version = "0.5", optional = true } url = "1.7" strum = "0.20.0" strum_macros = "0.20.1" -libc = "0.2" regex = "1" ioctl-rs = { version = "0.2", optional = true } serde_cbor = "0.11.1" diff --git a/src/main.rs b/src/main.rs index 602f2df..9c9c09c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,6 @@ use std::sync::Arc; use clap::{App, Arg}; use cursive::traits::Identifiable; -use std::ffi::CString; use librespot_core::authentication::Credentials; use librespot_core::cache::Cache; @@ -127,9 +126,6 @@ struct UserDataInner { } fn main() { - let buf = CString::new("").unwrap(); - unsafe { libc::setlocale(libc::LC_ALL, buf.as_ptr()) }; - let backends = { let backends: Vec<&str> = audio_backend::BACKENDS.iter().map(|b| b.0).collect(); format!("Audio backends: {}", backends.join(", "))