Skip to content

Commit

Permalink
Merge pull request RustAudio#379 from est31/master
Browse files Browse the repository at this point in the history
Remove redundant 'static from &'static str
  • Loading branch information
mitchmindtree authored Feb 24, 2020
2 parents 946d646 + d97983e commit aac04e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions asio-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ use std::env;
use std::path::PathBuf;
use walkdir::WalkDir;

const CPAL_ASIO_DIR: &'static str = "CPAL_ASIO_DIR";
const CPAL_ASIO_DIR: &str = "CPAL_ASIO_DIR";

const ASIO_HEADER: &'static str = "asio.h";
const ASIO_SYS_HEADER: &'static str = "asiosys.h";
const ASIO_DRIVERS_HEADER: &'static str = "asiodrivers.h";
const ASIO_HEADER: &str = "asio.h";
const ASIO_SYS_HEADER: &str = "asiosys.h";
const ASIO_DRIVERS_HEADER: &str = "asiodrivers.h";

fn main() {
// If ASIO directory isn't set silently return early
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;

const CPAL_ASIO_DIR: &'static str = "CPAL_ASIO_DIR";
const CPAL_ASIO_DIR: &str = "CPAL_ASIO_DIR";

fn main() {
// If ASIO directory isn't set silently return early
Expand Down
2 changes: 1 addition & 1 deletion examples/record_wav.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() -> Result<(), anyhow::Error> {
.expect("Failed to get default input config");
println!("Default input config: {:?}", config);
// The WAV file we're recording to.
const PATH: &'static str = concat!(env!("CARGO_MANIFEST_DIR"), "/recorded.wav");
const PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/recorded.wav");
let spec = wav_spec_from_config(&config);
let writer = hound::WavWriter::create(PATH, spec)?;
let writer = Arc::new(Mutex::new(Some(writer)));
Expand Down

0 comments on commit aac04e7

Please sign in to comment.