File: update-fastrand.patch

package info (click to toggle)
rust-const-format-proc-macros 0.2.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 252 kB
  • sloc: makefile: 2
file content (34 lines) | stat: -rw-r--r-- 1,094 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -65,3 +65,3 @@
 [dev-dependencies.fastrand]
-version = "1.3.4"
+version = "2"
 
--- a/src/format_str/tests.rs
+++ b/src/format_str/tests.rs
@@ -201,3 +201,3 @@
     /// Panics if the input slice is empty
-    fn pick<'a, T>(&self, slice: &'a [T]) -> &'a T;
+    fn pick<'a, T>(&mut self, slice: &'a [T]) -> &'a T;
 
@@ -206,3 +206,3 @@
     /// Panics if there are no `chars` in the `bounds`
-    fn char_(&self, bounds: RangeInclusive<char>) -> char;
+    fn char_(&mut self, bounds: RangeInclusive<char>) -> char;
 }
@@ -210,3 +210,3 @@
 impl RngExt for Rng {
-    fn pick<'a, T>(&self, slice: &'a [T]) -> &'a T {
+    fn pick<'a, T>(&mut self, slice: &'a [T]) -> &'a T {
         &slice[self.usize(0..slice.len())]
@@ -214,3 +214,3 @@
 
-    fn char_(&self, bounds: RangeInclusive<char>) -> char {
+    fn char_(&mut self, bounds: RangeInclusive<char>) -> char {
         if let None = bounds.clone().next() {
@@ -230,3 +230,3 @@
 fn generate_input() -> String {
-    let rng = Rng::new();
+    let mut rng = Rng::new();
     let len = rng.usize(0..40);