changeset 42839:ee0f511b7a22

rust: fix warnings about trait objects without dyn being deprecated Differential Revision: https://phab.mercurial-scm.org/D6770
author Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
date Wed, 28 Aug 2019 08:16:58 -0400
parents f1f9ad5ae4f8
children b1b984f9c01d
files rust/hg-cpython/src/ref_sharing.rs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
         );