Skip to content

Commit 19a0de2

Browse files
committed
Auto merge of #7698 - dtolnay:description, r=alexcrichton
Remove use of deprecated Error::description method We are getting ready to deprecate std::error::Error::description: rust-lang/rust#66919. This PR replaces one place that should be using Display instead.
2 parents 5694e7c + e08a3ce commit 19a0de2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cargo/ops/cargo_doc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use crate::util::CargoResult;
55
use failure::Fail;
66
use opener;
77
use std::collections::HashMap;
8-
use std::error::Error;
98
use std::path::Path;
109
use std::process::Command;
1110

@@ -94,7 +93,7 @@ fn open_docs(path: &Path, shell: &mut Shell) -> CargoResult<()> {
9493
shell.warn(format!(
9594
"Couldn't open docs with {}: {}",
9695
browser.to_string_lossy(),
97-
e.description()
96+
e
9897
))?;
9998
}
10099
}

0 commit comments

Comments
 (0)