embedding: fix conflicts from rustup

This commit is contained in:
Mike Blumenkrantz 2014-11-13 16:35:38 -05:00
parent 3d0d004887
commit 2df8125985

View file

@ -98,7 +98,7 @@ pub extern "C" fn cef_string_utf8_cmp(a: *const cef_string_utf8_t, b: *const cef
unsafe {
slice::raw::buf_as_slice((*a).str as *const u8, (*a).length as uint, |astr:&[u8]| {
slice::raw::buf_as_slice((*b).str as *const u8, (*b).length as uint, |bstr:&[u8]| {
match astr.cmp(&bstr) {
match astr.cmp(bstr) {
Less => -1,
Equal => 0,
Greater => 1
@ -187,7 +187,7 @@ pub extern "C" fn cef_string_utf16_cmp(a: *const cef_string_utf16_t, b: *const c
unsafe {
slice::raw::buf_as_slice(mem::transmute((*a).str), (*a).length as uint, |astr:&[u16]| {
slice::raw::buf_as_slice(mem::transmute((*b).str), (*b).length as uint, |bstr:&[u16]| {
match astr.cmp(&bstr) {
match astr.cmp(bstr) {
Less => -1,
Equal => 0,
Greater => 1