mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
embedding: replace usage of deprecated find*() with get*()
This commit is contained in:
parent
8b231a26e4
commit
8a4d2949e8
2 changed files with 4 additions and 4 deletions
|
@ -54,7 +54,7 @@ pub extern "C" fn cef_string_map_find(sm: *mut cef_string_map_t, key: *const cef
|
|||
if sm.is_null() { return 0; }
|
||||
let v = string_map_to_treemap(sm);
|
||||
slice_to_str((*key).str as *const u8, (*key).length as uint, |result| {
|
||||
match (*v).find(&String::from_str(result)) {
|
||||
match (*v).get(&String::from_str(result)) {
|
||||
Some(s) => {
|
||||
cef_string_utf8_set((**s).str as *const u8, (**s).length, value, 1);
|
||||
1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue