From c78ce06dc16247832df8a52ebbaba39e741ad1bf Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sun, 20 Jul 2014 12:58:09 +0200 Subject: [PATCH] hashsum: fix build --- hashsum/hashsum.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashsum/hashsum.rs b/hashsum/hashsum.rs index 18197cc66..d89540891 100644 --- a/hashsum/hashsum.rs +++ b/hashsum/hashsum.rs @@ -59,7 +59,7 @@ fn get_algo_opts(program: &str) -> Vec { } } -fn detect_algo(program: &str, matches: &getopts::Matches) -> (&str, Box) { +fn detect_algo(program: &str, matches: &getopts::Matches) -> (&'static str, Box) { let mut alg: Option> = None; let mut name: &'static str = ""; match program {