Debian Codegraph @

debian/patches/update-fastrand.patch

raw
1 --- a/Cargo.toml
2 +++ b/Cargo.toml
3 @@ -65,3 +65,3 @@
4 [dev-dependencies.fastrand]
5 -version = "1.3.4"
6 +version = "2"
7
8 --- a/src/format_str/tests.rs
9 +++ b/src/format_str/tests.rs
10 @@ -201,3 +201,3 @@
11 /// Panics if the input slice is empty
12 - fn pick<'a, T>(&self, slice: &'a [T]) -> &'a T;
13 + fn pick<'a, T>(&mut self, slice: &'a [T]) -> &'a T;
14
15 @@ -206,3 +206,3 @@
16 /// Panics if there are no `chars` in the `bounds`
17 - fn char_(&self, bounds: RangeInclusive<char>) -> char;
18 + fn char_(&mut self, bounds: RangeInclusive<char>) -> char;
19 }
20 @@ -210,3 +210,3 @@
21 impl RngExt for Rng {
22 - fn pick<'a, T>(&self, slice: &'a [T]) -> &'a T {
23 + fn pick<'a, T>(&mut self, slice: &'a [T]) -> &'a T {
24 &slice[self.usize(0..slice.len())]
25 @@ -214,3 +214,3 @@
26
27 - fn char_(&self, bounds: RangeInclusive<char>) -> char {
28 + fn char_(&mut self, bounds: RangeInclusive<char>) -> char {
29 if let None = bounds.clone().next() {
30 @@ -230,3 +230,3 @@
31 fn generate_input() -> String {
32 - let rng = Rng::new();
33 + let mut rng = Rng::new();
34 let len = rng.usize(0..40);