Update examples for switch to thiserror
To compensate for the removal of `failure`'s application friendly `failure::Error` trait, this `anyhow` crate has been added as a dev-dependency for the examples, but is by no means a necessity for other crates downstream of CPAL.
This commit is contained in:
parent
d9d4a906c9
commit
7b08cb0dae
5 changed files with 9 additions and 8 deletions
|
|
@ -2,13 +2,13 @@
|
|||
//!
|
||||
//! The input data is recorded to "$CARGO_MANIFEST_DIR/recorded.wav".
|
||||
|
||||
extern crate anyhow;
|
||||
extern crate cpal;
|
||||
extern crate failure;
|
||||
extern crate hound;
|
||||
|
||||
use cpal::traits::{DeviceTrait, EventLoopTrait, HostTrait};
|
||||
|
||||
fn main() -> Result<(), failure::Error> {
|
||||
fn main() -> Result<(), anyhow::Error> {
|
||||
// Use the default host for working with audio devices.
|
||||
let host = cpal::default_host();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue