From ea2df453a9c386a1702eb263b648a5ca244ebded Mon Sep 17 00:00:00 2001 From: "Herman J. Radtke III" Date: Tue, 9 May 2017 21:49:20 -0700 Subject: [PATCH] fix - remove unwrap --- src/cargo/core/workspace.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cargo/core/workspace.rs b/src/cargo/core/workspace.rs index 6c81bd8e827..fd8531540f8 100644 --- a/src/cargo/core/workspace.rs +++ b/src/cargo/core/workspace.rs @@ -545,7 +545,10 @@ impl<'cfg> Workspace<'cfg> { } fn expand_member_path(path: &Path) -> CargoResult> { - let path = path.to_str().unwrap(); + let path = match path.to_str() { + Some(p) => p, + None => return Ok(Vec::new()), + }; let res = glob(path).map_err(|e| { human(format!("could not parse pattern `{}`: {}", &path, e)) })?;