File: quick-error-2.patch

package info (click to toggle)
rust-libmount 0.1.15-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 308 kB
  • sloc: makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,270 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
40
41
42
Index: libmount/Cargo.toml
===================================================================
--- libmount.orig/Cargo.toml
+++ libmount/Cargo.toml
@@ -31,3 +31,3 @@ version = "0.2.28"
 [dependencies.quick-error]
-version = "1.2.0"
+version = "2.0"
 [dev-dependencies.argparse]
Index: libmount/src/lib.rs
===================================================================
--- libmount.orig/src/lib.rs
+++ libmount/src/lib.rs
@@ -50,11 +50,11 @@ quick_error! {
     #[derive(Debug)]
     enum MountError {
         Io(err: io::Error) {
-            cause(err)
+            source(err)
             from()
         }
         Remount(err: RemountError) {
-            cause(err)
+            source(err)
             from()
         }
     }
Index: libmount/src/remount.rs
===================================================================
--- libmount.orig/src/remount.rs
+++ libmount/src/remount.rs
@@ -71,9 +71,8 @@ quick_error! {
     #[derive(Debug)]
     pub enum RemountError {
         Io(msg: String, err: io::Error) {
-            cause(err)
+            source(err)
             display("{}: {}", msg, err)
-            description(err.description())
             from(err: io::Error) -> (String::new(), err)
         }
         ParseMountInfo(err: String) {