Skip to content

Commit e333c86

Browse files
author
ferris
committed
Merge pull request #23 from yupferris/fix-nightly-warnings
Fix nightly warnings
2 parents 2d32865 + b81feb7 commit e333c86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/sine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn main() {
3030
// Construct an Output audio unit.
3131
let mut audio_unit = AudioUnit::new(Type::Output, SubType::HalOutput).unwrap();
3232
audio_unit.render_callback(Some(Box::new(move |buffer, num_frames| {
33-
for frame in (0..num_frames) {
33+
for frame in 0..num_frames {
3434
let sample = samples.next().unwrap();
3535
for channel in buffer.iter_mut() {
3636
channel[frame] = sample;

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
//! Currently, work has only been started on the [audio_unit](./audio_unit/index.html) module, but
99
//! eventually we'd like to cover at least the majority of the C API.
1010
11+
extern crate coreaudio_sys;
12+
pub use coreaudio_sys as bindings;
1113

12-
pub extern crate coreaudio_sys as bindings;
1314
extern crate libc;
1415

1516
pub mod audio_unit;
1617
pub mod error;
17-

0 commit comments

Comments
 (0)