From f28eb98bb2078486e84f3de9eaa540d2d83f7444 Mon Sep 17 00:00:00 2001 From: Frederik Delaere Date: Thu, 16 Nov 2017 14:06:17 +0100 Subject: [PATCH] fixed a bug when running makecache --- Cargo.lock | 2 +- src/script.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c3ca36c..ffb71e3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [root] name = "rsmodules" -version = "0.5.9" +version = "0.5.8" dependencies = [ "bincode 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", "getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/src/script.rs b/src/script.rs index c860683..7f03630 100644 --- a/src/script.rs +++ b/src/script.rs @@ -406,8 +406,8 @@ fn description(desc: String) { INFO_DESCRIPTION.lock().unwrap().push(desc.replace("\"", "\\\"")); } -fn description_cache(desc: &str) { - add_to_info_general(desc); +fn description_cache(desc: String) { + add_to_info_general(&desc); } pub fn run(path: &PathBuf, action: &str) {