rust/lfprng/src/lib.rs
changeset 13935 75eaf7c71789
parent 13904 3f0576157749
child 14027 cef0c685fda8
--- a/rust/lfprng/src/lib.rs	Wed Oct 17 22:00:58 2018 +0200
+++ b/rust/lfprng/src/lib.rs	Wed Oct 17 22:45:33 2018 +0200
@@ -49,7 +49,7 @@
 impl Iterator for LaggedFibonacciPRNG {
     type Item = u32;
 
-    fn next(&mut self) -> Option<u32> {
+    fn next(&mut self) -> Option<Self::Item> {
         self.get_next();
         Some(self.get_next())
     }