rust: fix warnings about trait objects without dyn being deprecated
authorValentin Gatien-Baron <valentin.gatienbaron@gmail.com>
Wed, 28 Aug 2019 08:16:58 -0400
changeset 42839 ee0f511b7a22
parent 42838 f1f9ad5ae4f8
child 42840 b1b984f9c01d
rust: fix warnings about trait objects without dyn being deprecated Differential Revision: https://phab.mercurial-scm.org/D6770
rust/hg-cpython/src/ref_sharing.rs
--- a/rust/hg-cpython/src/ref_sharing.rs	Thu Aug 29 23:38:24 2019 -0700
+++ b/rust/hg-cpython/src/ref_sharing.rs	Wed Aug 28 08:16:58 2019 -0400
@@ -345,7 +345,7 @@
             $name,
             $leaked,
             Box<
-                Iterator<Item = (&'static $key_type, &'static $value_type)>
+                dyn Iterator<Item = (&'static $key_type, &'static $value_type)>
                     + Send,
             >,
             $success_func,
@@ -367,7 +367,7 @@
         py_shared_iterator_impl!(
             $name,
             $leaked,
-            Box<Iterator<Item = &'static $key_type> + Send>,
+            Box<dyn Iterator<Item = &'static $key_type> + Send>,
             $success_func,
             $success_type
         );