Remove libc dependency + setlocale call
This is already taken care of in Cursive:
e2f79776a4
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -2023,7 +2023,6 @@ dependencies = [
|
|||||||
"futures 0.3.14",
|
"futures 0.3.14",
|
||||||
"ioctl-rs",
|
"ioctl-rs",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"libc",
|
|
||||||
"librespot-core",
|
"librespot-core",
|
||||||
"librespot-playback",
|
"librespot-playback",
|
||||||
"librespot-protocol",
|
"librespot-protocol",
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ clipboard = { version = "0.5", optional = true }
|
|||||||
url = "1.7"
|
url = "1.7"
|
||||||
strum = "0.20.0"
|
strum = "0.20.0"
|
||||||
strum_macros = "0.20.1"
|
strum_macros = "0.20.1"
|
||||||
libc = "0.2"
|
|
||||||
regex = "1"
|
regex = "1"
|
||||||
ioctl-rs = { version = "0.2", optional = true }
|
ioctl-rs = { version = "0.2", optional = true }
|
||||||
serde_cbor = "0.11.1"
|
serde_cbor = "0.11.1"
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ use std::sync::Arc;
|
|||||||
|
|
||||||
use clap::{App, Arg};
|
use clap::{App, Arg};
|
||||||
use cursive::traits::Identifiable;
|
use cursive::traits::Identifiable;
|
||||||
use std::ffi::CString;
|
|
||||||
|
|
||||||
use librespot_core::authentication::Credentials;
|
use librespot_core::authentication::Credentials;
|
||||||
use librespot_core::cache::Cache;
|
use librespot_core::cache::Cache;
|
||||||
@@ -127,9 +126,6 @@ struct UserDataInner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let buf = CString::new("").unwrap();
|
|
||||||
unsafe { libc::setlocale(libc::LC_ALL, buf.as_ptr()) };
|
|
||||||
|
|
||||||
let backends = {
|
let backends = {
|
||||||
let backends: Vec<&str> = audio_backend::BACKENDS.iter().map(|b| b.0).collect();
|
let backends: Vec<&str> = audio_backend::BACKENDS.iter().map(|b| b.0).collect();
|
||||||
format!("Audio backends: {}", backends.join(", "))
|
format!("Audio backends: {}", backends.join(", "))
|
||||||
|
|||||||
Reference in New Issue
Block a user