Add #[inline] attributes
This commit is contained in:
parent
6ecc5f5078
commit
75f828b04f
9 changed files with 59 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ unsafe impl Send for EndpointsIterator {}
|
|||
unsafe impl Sync for EndpointsIterator {}
|
||||
|
||||
impl Drop for EndpointsIterator {
|
||||
#[inline]
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
alsa::snd_device_name_free_hint(self.global_list as *mut _);
|
||||
|
|
@ -72,6 +73,7 @@ impl Iterator for EndpointsIterator {
|
|||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_default_endpoint() -> Option<Endpoint> {
|
||||
// TODO: do in a different way?
|
||||
Some(Endpoint("default".to_owned()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue