diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-06-26 17:17:18 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-06-26 17:17:18 +0200 |
commit | 932aa066949a43412e609d7713da822c8506064f (patch) | |
tree | 7f0bfb8c1694bc281b1a12fd375bbe0186fa1cae /components/script | |
parent | f812390d3a6f5097aa493313c6c90fd2fa320024 (diff) | |
download | servo-932aa066949a43412e609d7713da822c8506064f.tar.gz servo-932aa066949a43412e609d7713da822c8506064f.zip |
Use Rc::get_mut rather than deprecated rc::get_mut.
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/bindings/codegen/CodegenRust.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index 5aa3adecc41..5b81bcd46d1 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -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" |