Fix warnings and reduce scope of libc (#166)
This commit is contained in:
parent
6ae01f437c
commit
c28407b26d
6 changed files with 2 additions and 12 deletions
|
|
@ -1,14 +1,12 @@
|
|||
|
||||
use super::Endpoint;
|
||||
use super::alsa;
|
||||
use super::libc;
|
||||
use super::check_errors;
|
||||
|
||||
use std::ffi::CStr;
|
||||
use std::ffi::CString;
|
||||
use std::mem;
|
||||
|
||||
use libc;
|
||||
|
||||
/// ALSA implementation for `EndpointsIterator`.
|
||||
pub struct EndpointsIterator {
|
||||
// we keep the original list so that we can pass it to the free function
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
extern crate coreaudio;
|
||||
extern crate libc;
|
||||
|
||||
use ChannelPosition;
|
||||
use CreationError;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ from time to time.
|
|||
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
extern crate libc;
|
||||
|
||||
pub use samples_formats::{Sample, SampleFormat};
|
||||
|
||||
|
|
|
|||
|
|
@ -6,14 +6,12 @@ use super::kernel32;
|
|||
use super::ole32;
|
||||
use super::winapi;
|
||||
|
||||
use std::iter;
|
||||
use std::marker::PhantomData;
|
||||
use std::mem;
|
||||
use std::ptr;
|
||||
use std::slice;
|
||||
use std::sync::atomic::AtomicUsize;
|
||||
use std::sync::atomic::Ordering;
|
||||
use std::sync::Arc;
|
||||
use std::sync::Mutex;
|
||||
|
||||
use ChannelPosition;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue