diff rust/hg-core/src/dirstate_tree/on_disk.rs @ 48554:0dc698c91ca0

rust: upgrade `rand*` crates `test-check-cargo-lock.t` is failing for me and I was hoping this would help. It doesn't, but we might as well take the upgrade now that I've done the (small amount of) work for it. Differential Revision: https://phab.mercurial-scm.org/D12000
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 14 Jan 2022 10:25:45 -0800
parents d6c53b40b078
children f13fb742e1d8
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate_tree/on_disk.rs	Thu Jan 06 22:09:40 2022 -0800
+++ b/rust/hg-core/src/dirstate_tree/on_disk.rs	Fri Jan 14 10:25:45 2022 -0800
@@ -207,7 +207,7 @@
             // One random hexadecimal digit.
             // `unwrap` never panics because `impl Write for String`
             // never returns an error.
-            write!(&mut id, "{:x}", rng.gen_range(0, 16)).unwrap();
+            write!(&mut id, "{:x}", rng.gen_range(0..16)).unwrap();
         }
         id
     }