Skip to content

Commit

Permalink
Auto merge of #7698 - dtolnay:description, r=alexcrichton
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Dec 12, 2019
2 parents 5694e7c + e08a3ce commit 19a0de2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cargo/ops/cargo_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::util::CargoResult;
use failure::Fail;
use opener;
use std::collections::HashMap;
use std::error::Error;
use std::path::Path;
use std::process::Command;

Expand Down Expand Up @@ -94,7 +93,7 @@ fn open_docs(path: &Path, shell: &mut Shell) -> CargoResult<()> {
shell.warn(format!(
"Couldn't open docs with {}: {}",
browser.to_string_lossy(),
e.description()
e
))?;
}
}
Expand Down

0 comments on commit 19a0de2

Please sign in to comment.