Cleanup the check_null function.

This commit is contained in:
Kasey Carrothers 2014-09-23 12:54:16 -07:00
parent 80014b2856
commit 3e8ad53939
1 changed files with 1 additions and 6 deletions

View File

@ -2671,12 +2671,7 @@ fn exported_name(ccx: &CrateContext, id: ast::NodeId,
}
fn contains_null(s: &str) -> bool {
for b in s.bytes() {
if b == 0 {
return true
}
}
false
s.bytes().any(|b| b == 0)
}
pub fn get_item_val(ccx: &CrateContext, id: ast::NodeId) -> ValueRef {