diff --git a/Cargo.toml b/Cargo.toml index ff180a0..4207324 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ readme = "README.md" homepage = "https://github.com/RustAudio/coreaudio-sys" repository = "https://github.com/RustAudio/coreaudio-sys.git" build = "build.rs" +edition = "2018" [build-dependencies] bindgen = "0.42" diff --git a/build.rs b/build.rs index 2974293..89a42dc 100644 --- a/build.rs +++ b/build.rs @@ -10,7 +10,7 @@ fn osx_version() -> Result { .output()? .stdout; let version_str = std::str::from_utf8(&output).expect("invalid output from `defaults`"); - let version = version_str.trim_right(); + let version = version_str.trim_end(); Ok(version.to_owned()) } @@ -38,7 +38,7 @@ fn frameworks_path() -> Result { let output = Command::new("xcode-select").arg("-p").output()?.stdout; let prefix_str = std::str::from_utf8(&output).expect("invalid output from `xcode-select`"); - let prefix = prefix_str.trim_right(); + let prefix = prefix_str.trim_end(); let platform = if cfg!(target_os = "macos") { "MacOSX"