mirror of
https://github.com/uutils/coreutils
synced 2024-07-23 19:04:18 +00:00
Fix: Update quick-error crate version from 1.2.3 to 2.0.1 in src/uu/cp (#2947)
fix: update quick-error crate from 1.2.3 to 2.0.1 for src/uu/cp tool, fixes: #2941
This commit is contained in:
parent
7fc82cd376
commit
1194a8ce53
10
Cargo.lock
generated
10
Cargo.lock
generated
|
@ -1468,12 +1468,6 @@ dependencies = [
|
|||
"unicode-xid 0.2.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "quick-error"
|
||||
version = "1.2.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
|
||||
|
||||
[[package]]
|
||||
name = "quick-error"
|
||||
version = "2.0.1"
|
||||
|
@ -2199,7 +2193,7 @@ dependencies = [
|
|||
"filetime",
|
||||
"ioctl-sys",
|
||||
"libc",
|
||||
"quick-error 1.2.3",
|
||||
"quick-error",
|
||||
"selinux",
|
||||
"uucore",
|
||||
"walkdir",
|
||||
|
@ -2664,7 +2658,7 @@ dependencies = [
|
|||
"clap 3.0.10",
|
||||
"getopts",
|
||||
"itertools",
|
||||
"quick-error 2.0.1",
|
||||
"quick-error",
|
||||
"regex",
|
||||
"uucore",
|
||||
]
|
||||
|
|
|
@ -22,7 +22,7 @@ path = "src/cp.rs"
|
|||
clap = { version = "3.0", features = ["wrap_help", "cargo"] }
|
||||
filetime = "0.2"
|
||||
libc = "0.2.85"
|
||||
quick-error = "1.2.3"
|
||||
quick-error = "2.0.1"
|
||||
selinux = { version="0.2", optional=true }
|
||||
uucore = { version=">=0.0.11", package="uucore", path="../../uucore", features=["entries", "fs", "perms", "mode"] }
|
||||
walkdir = "2.2"
|
||||
|
|
|
@ -64,14 +64,14 @@ quick_error! {
|
|||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
/// Simple io::Error wrapper
|
||||
IoErr(err: io::Error) { from() cause(err) display("{}", err)}
|
||||
IoErr(err: io::Error) { from() source(err) display("{}", err)}
|
||||
|
||||
/// Wrapper for io::Error with path context
|
||||
IoErrContext(err: io::Error, path: String) {
|
||||
display("{}: {}", path, err)
|
||||
context(path: &'a str, err: io::Error) -> (err, path.to_owned())
|
||||
context(context: String, err: io::Error) -> (err, context)
|
||||
cause(err)
|
||||
source(err)
|
||||
}
|
||||
|
||||
/// General copy error
|
||||
|
@ -86,7 +86,7 @@ quick_error! {
|
|||
NotAllFilesCopied {}
|
||||
|
||||
/// Simple walkdir::Error wrapper
|
||||
WalkDirErr(err: walkdir::Error) { from() display("{}", err) cause(err) }
|
||||
WalkDirErr(err: walkdir::Error) { from() display("{}", err) source(err) }
|
||||
|
||||
/// Simple std::path::StripPrefixError wrapper
|
||||
StripPrefixError(err: StripPrefixError) { from() }
|
||||
|
|
Loading…
Reference in a new issue