mirror of https://github.com/rust-lang/rust.git
Cleanup the check_null function.
This commit is contained in:
parent
80014b2856
commit
3e8ad53939
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue