Debian Codegraph @

debian/patches/quick-error-2.patch

raw
1 Index: libmount/Cargo.toml
2 ===================================================================
3 --- libmount.orig/Cargo.toml
4 +++ libmount/Cargo.toml
5 @@ -31,3 +31,3 @@ version = "0.2.28"
6 [dependencies.quick-error]
7 -version = "1.2.0"
8 +version = "2.0"
9 [dev-dependencies.argparse]
10 Index: libmount/src/lib.rs
11 ===================================================================
12 --- libmount.orig/src/lib.rs
13 +++ libmount/src/lib.rs
14 @@ -50,11 +50,11 @@ quick_error! {
15 #[derive(Debug)]
16 enum MountError {
17 Io(err: io::Error) {
18 - cause(err)
19 + source(err)
20 from()
21 }
22 Remount(err: RemountError) {
23 - cause(err)
24 + source(err)
25 from()
26 }
27 }
28 Index: libmount/src/remount.rs
29 ===================================================================
30 --- libmount.orig/src/remount.rs
31 +++ libmount/src/remount.rs
32 @@ -71,9 +71,8 @@ quick_error! {
33 #[derive(Debug)]
34 pub enum RemountError {
35 Io(msg: String, err: io::Error) {
36 - cause(err)
37 + source(err)
38 display("{}: {}", msg, err)
39 - description(err.description())
40 from(err: io::Error) -> (String::new(), err)
41 }
42 ParseMountInfo(err: String) {