From 092c88c4a9fdf05313054f5c17810f4d3dd8a565 Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Sat, 2 Feb 2019 10:15:31 +0000 Subject: [PATCH] Replace util::without_prefix with Path::strip_prefix --- src/cargo/ops/cargo_package.rs | 6 +++--- src/cargo/ops/cargo_run.rs | 10 +++++----- src/cargo/ops/cargo_test.rs | 11 ++++------- src/cargo/sources/path.rs | 10 +++++----- src/cargo/util/mod.rs | 2 +- src/cargo/util/paths.rs | 14 -------------- src/cargo/util/toml/mod.rs | 2 +- 7 files changed, 19 insertions(+), 36 deletions(-) diff --git a/src/cargo/ops/cargo_package.rs b/src/cargo/ops/cargo_package.rs index a8f92ad2fe3..9fd2b97101e 100644 --- a/src/cargo/ops/cargo_package.rs +++ b/src/cargo/ops/cargo_package.rs @@ -69,7 +69,7 @@ pub fn package(ws: &Workspace<'_>, opts: &PackageOpts<'_>) -> CargoResult