Skip to content

Commit dc85e44

Browse files
committed
Update which.
1 parent 820435c commit dc85e44

File tree

3 files changed

+98
-5
lines changed

3 files changed

+98
-5
lines changed

Cargo.lock

Lines changed: 96 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ lazy_static = "1"
5353
peeking_take_while = "0.1.2"
5454
quote = { version = "0.5", default-features = false }
5555
regex = "1.0"
56-
which = "1.0.2"
56+
which = "2.0"
5757
# New validation in 0.3.6 breaks bindgen-integration:
5858
# https://github.com/alexcrichton/proc-macro2/commit/489c642.
5959
proc-macro2 = { version = "0.3.2, < 0.3.6", default-features = false }

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ impl Bindings {
18201820
None => {
18211821
let path = which::which("rustfmt")
18221822
.map_err(|e| {
1823-
io::Error::new(io::ErrorKind::Other, e.to_owned())
1823+
io::Error::new(io::ErrorKind::Other, format!("{}", e))
18241824
})?;
18251825

18261826
Cow::Owned(path)

0 commit comments

Comments
 (0)