File: older-rand

package info (click to toggle)
rust-ognibuild 0.0.34-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,312 kB
  • sloc: makefile: 17
file content (26 lines) | stat: -rw-r--r-- 901 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
Index: ognibuild/Cargo.toml
===================================================================
--- ognibuild.orig/Cargo.toml
+++ ognibuild/Cargo.toml
@@ -188,7 +188,7 @@ version = ">=0.3"
 features = ["serde"]
 
 [dependencies.rand]
-version = "0.9.0"
+version = "0.8"
 
 [dependencies.regex]
 version = "1.10.6"
Index: ognibuild/src/session/schroot.rs
===================================================================
--- ognibuild.orig/src/session/schroot.rs
+++ ognibuild/src/session/schroot.rs
@@ -14,7 +14,7 @@ pub fn sanitize_session_name(name: &str)
 pub fn generate_session_id(prefix: &str) -> String {
     let suffix: String = String::from_utf8(
         iter::repeat(())
-            .map(|()| rand::thread_rng().sample(rand::distr::Alphanumeric))
+            .map(|()| rand::thread_rng().sample(rand::distributions::Alphanumeric))
             .take(8)
             .collect(),
     )