Skip to content

Commit

Permalink
Remove use of deprecated Error::description method
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 12, 2019
1 parent 89d4ab5 commit e08a3ce
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 e08a3ce

Please sign in to comment.