Browse Source

Prevent some `dead_code` warnings

- `inc_ref` is never used (but implementend)
- `InStream` has to be implemented
master
Andreas Linz 5 years ago
parent
commit
eaf0260148
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      src/base.rs
  2. +1
    -0
      src/ffi/functions.rs

+ 1
- 0
src/base.rs View File

@ -370,6 +370,7 @@ impl Device {
// ref is a keyword
/// Add 1 to the reference count of `device`.
#[allow(dead_code)]
fn inc_ref(&self) {
unsafe { ffi::soundio_device_ref(self.device) }
}

+ 1
- 0
src/ffi/functions.rs View File

@ -3,6 +3,7 @@ use std::os::raw::{c_int, c_double, c_char};
use ffi::enums::*;
use ffi::structs::*;
#[allow(dead_code)]
#[link(name = "soundio")]
extern "C" {
/// Create a SoundIo context. You may create multiple instances of this to

Loading…
Cancel
Save