rustc: Call str::is_empty
This commit is contained in:
parent
760c71dc4f
commit
341678b815
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ pub fn get_absolute_rpath(lib: &Path) -> Path {
|
|||
pub fn get_install_prefix_rpath(target_triple: &str) -> Path {
|
||||
let install_prefix = env!("CFG_PREFIX");
|
||||
|
||||
if install_prefix == ~"" {
|
||||
if install_prefix.is_empty() {
|
||||
fail!("rustc compiled without CFG_PREFIX environment variable");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue