From 700e4b827b548172ce7598948858401c79e594db Mon Sep 17 00:00:00 2001 From: Konstantin Welke Date: Mon, 21 Sep 2015 20:06:05 +0200 Subject: [PATCH] .ok.expect() so it compiles in older versions --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0d8dd4f..25d368c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -471,7 +471,7 @@ impl Config { fs::hard_link(&dst, &lib_dst).or_else(|_| { //if hard-link fails, just copy (ignoring the number of bytes written) fs::copy(&dst, &lib_dst).map(|_| ()) - }).expect("Copying from {:?} to {:?} failed.");; + }).ok().expect("Copying from {:?} to {:?} failed.");; } else { let ar = self.get_ar(); let cmd = ar.file_name().unwrap().to_string_lossy();