mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Use Rc::get_mut rather than deprecated rc::get_mut.
This commit is contained in:
parent
f812390d3a
commit
932aa06694
1 changed files with 2 additions and 1 deletions
|
@ -3644,7 +3644,8 @@ class ClassConstructor(ClassItem):
|
|||
"let mut ret = Rc::new(%s {\n"
|
||||
"%s\n"
|
||||
"});\n"
|
||||
"match rc::get_mut(&mut ret) {\n"
|
||||
"// Note: callback cannot be moved after calling init.\n"
|
||||
"match Rc::get_mut(&mut ret) {\n"
|
||||
" Some(ref mut callback) => callback.parent.init(%s),\n"
|
||||
" None => unreachable!(),\n"
|
||||
"};\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue