File: rustyline-17.patch

package info (click to toggle)
rust-drm 0.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 376 kB
  • sloc: makefile: 2
file content (26 lines) | stat: -rw-r--r-- 971 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: drm/Cargo.toml
===================================================================
--- drm.orig/Cargo.toml
+++ drm/Cargo.toml
@@ -109,7 +109,7 @@ features = [
 ]
 
 [dev-dependencies.rustyline]
-version = "13"
+version = "17"
 
 [features]
 use_bindgen = ["drm-ffi/use_bindgen"]
Index: drm/examples/kms_interactive.rs
===================================================================
--- drm.orig/examples/kms_interactive.rs
+++ drm/examples/kms_interactive.rs
@@ -58,7 +58,7 @@ fn run_repl(card: &Card) {
         .edit_mode(rustyline::config::EditMode::Vi)
         .auto_add_history(true)
         .build();
-    let mut kms_editor = rustyline::Editor::<(), _>::with_config(editor_config).unwrap();
+    let mut kms_editor = rustyline::Editor::<(), _>::with_config(editor_config.clone()).unwrap();
     let mut atomic_editor = rustyline::Editor::<(), _>::with_config(editor_config).unwrap();
 
     for line in kms_editor.iter("KMS>> ").map(|x| x.unwrap()) {