Skip to content

Commit

Permalink
remove absolutize and do not canonicalize
Browse files Browse the repository at this point in the history
  • Loading branch information
xmclark committed Nov 4, 2018
1 parent a2a3520 commit 0a9c770
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 28 deletions.
19 changes: 0 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ indicatif = "0.9.0"
lazy_static = "1.1.0"
openssl = { version = '0.10.11', optional = true }
parking_lot = "0.6"
path-absolutize = "1.1.1"
serde = "1.0.74"
serde_derive = "1.0.74"
serde_json = "1.0.26"
Expand Down
8 changes: 1 addition & 7 deletions src/command/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use emoji;
use failure;
use path_absolutize::*;
use progressbar::Step;
use std::fs;
use std::path::{Path, PathBuf};
Expand All @@ -11,12 +10,7 @@ use PBAR;
/// If an explicit path is given, then use it, otherwise assume the current
/// directory is the crate path.
pub fn set_crate_path(path: Option<PathBuf>) -> Result<PathBuf, failure::Error> {
let crate_path = match path {
Some(p) => p,
None => PathBuf::from("."),
};
let absolute_crate_path = crate_path.absolutize()?;
Ok(absolute_crate_path)
Ok(path.unwrap_or(PathBuf::from(".")))
}

/// Construct our `pkg` directory in the crate.
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ extern crate indicatif;
#[macro_use]
extern crate lazy_static;
extern crate parking_lot;
extern crate path_absolutize;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
Expand Down

0 comments on commit 0a9c770

Please sign in to comment.