Skip to content

Commit e08a3ce

Browse files
committed
Remove use of deprecated Error::description method
1 parent 89d4ab5 commit e08a3ce

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)