Skip to content

Commit 341678b

Browse files
committed
rustc: Call str::is_empty
1 parent 760c71d commit 341678b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/back/rpath.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub fn get_absolute_rpath(lib: &Path) -> Path {
178178
pub fn get_install_prefix_rpath(target_triple: &str) -> Path {
179179
let install_prefix = env!("CFG_PREFIX");
180180

181-
if install_prefix == ~"" {
181+
if install_prefix.is_empty() {
182182
fail!("rustc compiled without CFG_PREFIX environment variable");
183183
}
184184

0 commit comments

Comments
 (0)