Skip to content

Commit

Permalink
fixed a bug and reverted the version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Delaere committed Nov 16, 2017
1 parent 77c10d6 commit 7f475ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rsmodules"
version = "0.5.9"
version = "0.5.8"
authors = ["Frederik Delaere <[email protected]>"]

[dependencies]
Expand Down
5 changes: 4 additions & 1 deletion src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,10 @@ pub fn get_description() -> Vec<String> {
// there can be multiple description calls, but
// only store the first line of the description in
// the cache file
output.push(INFO_GENERAL.lock().unwrap().get(0).unwrap().to_string());
let desc: Vec<String> = INFO_GENERAL.lock().unwrap().to_vec();
if !desc.is_empty() {
output.push(INFO_GENERAL.lock().unwrap().get(0).unwrap().to_string());
}

output
}
Expand Down

0 comments on commit 7f475ff

Please sign in to comment.