Mercurial > public > mercurial-scm > hg
diff rust/hg-cpython/src/ref_sharing.rs @ 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 | 30320c7bf79f |
children | 8db8fa1de2ef |
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 );