rust: fix warnings about trait objects without dyn being deprecated
Differential Revision: https://phab.mercurial-scm.org/D6770
--- 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
);